You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a user trys to install your app, and the backend has an error AFTER the session has been created. When try again you get the following error:
Received an error response (401 Unauthorized) from Shopify:
"[API] Invalid API key or access token (unrecognized login or wrong password)"
If you report this error, please include this id: 3df071e1-fb98-469f-a2de-ccc4ea88ab27
Error: Received an error response (401 Unauthorized) from Shopify:
"[API] Invalid API key or access token (unrecognized login or wrong password)"
If you report this error, please include this id: 3df071e1-fb98-469f-a2de-ccc4ea88ab27
File "/usr/src/app/node_modules/@shopify/shopify-api/lib/clients/http_client/http_client.js", line 193, col 23, in NewHttpClient.throwFailedRequest
throw new ShopifyErrors.HttpResponseError({
File "/usr/src/app/node_modules/@shopify/shopify-api/lib/clients/http_client/http_client.js", line 220, col 22, in NewHttpClient.<anonymous>
this.throwFailedRequest(body, response);
File "<anonymous>", in Generator.next
File "/usr/src/app/node_modules/tslib/tslib.js", line 166, col 62, in fulfilled
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
File "node:internal/process/task_queues", line 95, col 5, in process.processTicksAndRejections
Expected behavior
If a 401 error happens, we should assume the store needs to be reinstalled
Actual behavior
The error is thrown, and the page never loads.
The text was updated successfully, but these errors were encountered:
Hi, thank you for raising this issue. The 401 response from Shopify means that the access token was not valid, which is probably a consequence of the error you mentioned. However, it can also happen for other reasons, like when an online access token expires, so the app needs to be able to handle these errors.
When you use one of the API clients to make requests, it'll throw an HttpResponseError error when we get a 401 back. When you catch that, you can use redirectOutOfApp to start the login process again (or handle the error differently if you want to).
We are closing this issue because we did not hear back regarding additional details we needed to resolve this issue. If the issue persists and you are able to provide the missing clarification we need, feel free to respond and reopen this issue.
We appreciate your understanding as we try to manage our number of open issues.
Issue summary
If a user trys to install your app, and the backend has an error AFTER the session has been created. When try again you get the following error:
"@shopify/shopify-app-session-storage": "^1.1.9",
"@shopify/shopify-app-session-storage-memory": "^1.0.11",
"@shopify/shopify-app-session-storage-postgresql": "^1.1.10",
"@shopify/shopify-app-session-storage-redis": "^1.1.9",
Expected behavior
If a 401 error happens, we should assume the store needs to be reinstalled
Actual behavior
The error is thrown, and the page never loads.
The text was updated successfully, but these errors were encountered: