This document provides detailed troubleshooting guidance for the Shopware node in n8n.
It focuses on issues related to credentials, resources, operations, API behavior, and node-level errors when interacting with the Shopware Admin API.
Node Not Found / Invalid Node TypeError Message:
Node type "CUSTOM.shopware" could not be found
Possible Causes:
Fix:
~/.n8n/custom/nodes/Shopware/Shopware.node.jsn8n stop
n8n build
n8n start
401 UnauthorizedCause: Invalid or expired access token, or incorrect Client ID/Secret pair.
Fix:
Credentials → Shopware OAuth2 API
Ensure:
The Client ID, Client Secret, and API URL are correct.
The API user has the required scopes (e.g., read product, write product).
Verification: Test manually via cURL:
curl -X GET https://<shop-domain>/api/_info/version \
-H "Authorization: Bearer <ACCESS_TOKEN>"
Cause: Insufficient API permissions or disabled integration in Shopware.
Fix:
In Shopware Admin → Settings → System → Integrations:
Ensure the integration is Active.
Check permissions for the required entities (product, order, customer, etc.).
Reissue credentials if the integration was reconfigured.
400 Bad RequestCause: Malformed payload or unsupported property in a node operation.
Examples:
price).Fix:
504 Gateway TimeoutCause: The Shopware server took too long to respond due to large payloads or filters.
Fix:
Use pagination parameters (limit) for getMany operations.
Avoid unfiltered queries across large datasets.
If available, enable caching or background processing in Shopware.
404 Not FoundCause: The resource ID provided doesn’t exist or the URL is incorrect.
Fix:
Double-check resourceId or endpoint paths.
Confirm that the product, order, or customer exists in Shopware Admin.
Log the request body and endpoint from the n8n execution to verify correctness.
Error:
The selected operation is not available for this resource
Cause: Attempting an operation (update, delete, etc.) on a resource that doesn’t support it.
Fix:
Check the supported operations in the Shopware node configuration:
product: getMany, get, create, update, delete
customer: getMany, get, create, update, delete
order: getMany, get, create, update, delete
Ensure that the resource matches the intended API route.
httpCode
error.message
response.body
export N8N_LOG_LEVEL=debug
n8n start
Re-run the workflow to view HTTP requests/responses in logs.
Ensure correct field names match Shopware’s property schema.
Use expressions only where supported (e.g., =).
Error Trigger or Try/Catch to handle intermittent failures.| Recommendation | Description |
|---|---|
| Use Pagination (Limit) | Avoid fetching large result sets in a single request. |
| Handle Rate Limits | Shopware throttles API usage; add delays for high-frequency workflows. |
| Cache Static Data | Store non-changing entities locally to reduce load. |
| Version Pinning | Lock your node’s typeVersion to prevent breaking updates. |
| Test API Connectivity | Always validate credentials and endpoints before large executions. |