403 error when uploading a jsonl file

hi

I suddenly started to get a 403 error before bulk inserting products.
I bulk insert multiple products and I write necessary params in a jsonl file and reserve a staged upload url by this graphql query.

export type ReserveStagedUploadUrlPayload = {
stagedUploadsCreate: {
userErrors: UserError;
stagedTargets: {
parameters: {
name: string;
value: string;
};
resourceUrl: string;
url: string;
};
};
};

And then I upload the jsonl file to shopify’s s3.

await axios.post(process.env.SHOPIFY_S3_URL || ``, formData, {
headers: {
…formData.getHeaders(),
‘content-length’: contentLength,
},
});

This worked before, but I suddenly started to get 403 errors. When I connect to a different test shop, my code works, so I wonder why I get this error for this specific store

data: ‘<?xml version="1.0" encoding="UTF-8"?>\n’ +
AccessDeniedAccess DeniedJGQRJD056QE60Y5JoJG3TB7gJo3/6KZyFdJX3+q856l/tCk7M1NkShWOs0yKHWquDosW4Ub9/kpWpysrzV/Fzt3j+GE=’

can somebody help me

I ended up creating another project and migrating to it and for some reason it works

so my code did not have any problems but it was because of the store

what can I do in a situation like this? Can shopify support take care of it?

Hi Kunio,

Generally for store specific access denied errors a key troubleshooting step is to query the app’s available access scopes and to ensure the app is still installed and has permission appropriate to the operation being attempted. Here’s some documentation about that: [appInstallation in GraphQL - Shopify Dev Docs]

If the error persists only for a specific store you may want to open a support request through your partner account at [Shopify Partner Support] including more specific details about a recent test and the store it was performed on so it can be investigated further.

Thanks and hope you have a great day,

After some time, the same error started happening again, so I will do that

I figured the cause out, it was because Shopify moved the location of the storage from s3 to cloudstorage, so my code broke.