301 Error Using Shopify Add Product Node

Hello,

I am having issues with the create: product node for Shopify, an un-descriptive 301 error appears when executing the workflow. There was a similar thread to this issue with n8n cloud linked below, but no solution was provided (301 error when trying to add a product in my Shopify’s boutique).

I have tried removing all elements of the workflow and just adding a product with static information; the same error occurs. I also suspected that the image option may be causing this; I removed that option and still had the same error. I also tried a completely different workflow and node to no avail. I also ensured I was updated to the latest 1.61.0 on self-hosted Ubuntu server - DigitalOcean if it makes a difference.

Any assistance is appreciated! I am a little dumbfounded on what to do here and a 301 would indicate that it may be an issue with the Shopify endpoint in the source code (maybe?).

What is the error message (if any)?

{
“errorMessage”: “301 - ""”,
“errorDetails”: {
“rawErrorMessage”: [
“301 - ""”
],
“httpCode”: “301”
},
“n8nDetails”: {
“nodeName”: “Create New Shopify Product”,
“nodeType”: “n8n-nodes-base.shopify”,
“nodeVersion”: 1,
“resource”: “product”,
“operation”: “create”,
“time”: “10/4/2024, 10:51:20 AM”,
“n8nVersion”: “1.61.0 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“NodeApiError: 301 - ""”,
" at Object.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:1283:19)“,
" at processTicksAndRejections (node:internal/process/task_queues:95:5)”,
" at Object.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:2073:20)“,
" at Object.shopifyApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Shopify/GenericFunctions.js:56:12)”,
" at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Shopify/Shopify.node.js:317:40)“,
" at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:722:19)”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:711:51",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1141:20"
]
}
}

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • **n8n version: Latest 1.61.0
  • **Database (default: SQLite): SQLite
  • **n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): Docker 25.0.3 - Docker Compose
  • **Operating system: Ubuntu 22.04

Bumping for visibility. Hoping someone has an answer - this may be a bug since the 301 is non-descript and doesn’t appear to be related to my environment setup.

Hi @orangeslice,

Welcome to the community! :tangerine:

A 301 error means a permanent redirect and you are right, it should include some information about the new location of the endpoint you’re trying to get. This might actually be on the Shopify end rather than n8n - I’ll create an account to recreate and take a look at this.

Hape you recently updated your Shopify store domain or made any updates along this line?

Hi Marina,

Thanks for the reply - I wish there was a more descriptive 301 error. You’re right that I expect this error to be with Shopify and not my environment. I went ahead and re-tested it as well with just the Shopify node.

I inadvertently solved the problem: The error seems to be related to the selected subdomain of the Shopify store and linking it to Credentials in n8n. I guess Shopify API Access is only authorized through the auto-generated initial myshopify.com subdomain, even if you create or assign a new .myshopify.com domain.


This resolved the issue - I hope it helps someone else with the same problem.

5 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.