Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL requests return HTTP status code 500 #25

Closed
lipsotiko opened this issue Feb 5, 2022 · 0 comments
Closed

GraphQL requests return HTTP status code 500 #25

lipsotiko opened this issue Feb 5, 2022 · 0 comments

Comments

@lipsotiko
Copy link

lipsotiko commented Feb 5, 2022

After following the README.md, none of the GraphQL requests return a response; the following error appears in the log:

Error: Failed to parse session token '<token>': jwt not active
┃       at InvalidJwtError.ShopifyError [as constructor] (/home/vango/sourcecode/product-reviews-sample-app/node_modules/@shopify/shopify-api/dist/error.js:13:28)
┃       at new InvalidJwtError (/home/vango/sourcecode/product-reviews-sample-app/node_modules/@shopify/shopify-api/dist/error.js:39:42)
┃       at Object.decodeSessionToken (/home/vango/sourcecode/product-reviews-sample-app/node_modules/@shopify/shopify-api/dist/utils/decode-session-token.js:20:15)
┃       at Object.getCurrentSessionId (/home/vango/sourcecode/product-reviews-sample-app/node_modules/@shopify/shopify-api/dist/auth/oauth/oauth.js:218:64)
┃       at Object.<anonymous> (/home/vango/sourcecode/product-reviews-sample-app/node_modules/@shopify/shopify-api/dist/utils/load-current-session.js:19:46)
┃       at step (/home/vango/sourcecode/product-reviews-sample-app/node_modules/@shopify/shopify-api/node_modules/tslib/tslib.js:143:27)
┃       at Object.next (/home/vango/sourcecode/product-reviews-sample-app/node_modules/@shopify/shopify-api/node_modules/tslib/tslib.js:124:57)
┃       at /home/vango/sourcecode/product-reviews-sample-app/node_modules/@shopify/shopify-api/node_modules/tslib/tslib.js:117:75
┃       at new Promise (<anonymous>)
┃       at Object.__awaiter (/home/vango/sourcecode/product-reviews-sample-app/node_modules/@shopify/shopify-api/node_modules/tslib/tslib.js:113:16)
┃       at Object.loadCurrentSession (/home/vango/sourcecode/product-reviews-sample-app/node_modules/@shopify/shopify-api/dist/utils/load-current-session.js:15:20)
┃       at /home/vango/sourcecode/product-reviews-sample-app/node_modules/@shopify/koa-shopify-auth/dist/src/verify-request/login-again-if-different-shop.js:17:74
┃       at step (/home/vango/sourcecode/product-reviews-sample-app/node_modules/tslib/tslib.js:133:27)
┃       at Object.next (/home/vango/sourcecode/product-reviews-sample-app/node_modules/tslib/tslib.js:114:57)
┃       at /home/vango/sourcecode/product-reviews-sample-app/node_modules/tslib/tslib.js:107:75
┃       at new Promise (<anonymous>)

Any guidance that could be provided to successfully run this application would be appreciated.

Update

Turns out it was an issue with my system time being out of sync with the NTP server:

*Shopify/shopify-api-js#137 (comment)
*https://linuxhint.com/sync-time-ntp-server-linux/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant