All things Shopify and commerce
Hey guys, i'm trying to upload a file using the graphql stagedUploadsCreate mutation. I get the signedUrl, then I fill the http request using the response shopify gives me.
However, I'm getting the error:
data: '<?xml version="1.0" encoding="UTF-8"?>\n' +
'<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>KWFH2ZGPZNGY1QRK</RequestId><HostId>HKknUB/ek/4zi7cg0TjKf5luSJyFV4cLp5KLz4Zujyys61XHF3ZhwynkeullCtWIvaMUa/lrVyw=</HostId></Error>'
My "Shopify App" should have all the required access to upload files (read_permissions and write_permissions) any idea why It's not working?
(The post is old but this might help someone.)
If you get a response from the stagedUploadsCreate mutation, your app must have the right scopes. But getting an "Access Denied" error when sending the HTTP request means that there's a problem with your access token/ authorisation header parameter. If you're using Nodejs, make sure to use the useAuthenticatedFetch hook.
See https://shopify.dev/apps/auth/basic-http#step-3-make-authenticated-requests
Make sure your app has "write_files" scopes.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025