Closed rohanrajpal closed 2 years ago
I just spinned a new Ubuntu container and tried the steps there, seemed to work just fine.
I'm not sure what is wrong with my laptop, on comparing the logs, these lines are not present on the container on which everything runs perfectly
479 β [2022-09-20T10:34:04.166Z 3d945676-42ae-48bf-82dc-6ea421f57808 DEBUG]: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
480 β [2022-09-20T10:34:04.507Z 3d945676-42ae-48bf-82dc-6ea421f57808 DEBUG]: The identity token is invalid: SyntaxError: Unexpected end of JSON input
481 β [2022-09-20T10:34:04.509Z 3d945676-42ae-48bf-82dc-6ea421f57808 DEBUG]: Reading the content of file at node_modules/.pnpm/@shopify+cli-kit@3.13.0/node_modules/@shopify/cli-kit/package.json...
482 β [2022-09-20T10:34:04.905Z 3d945676-42ae-48bf-82dc-6ea421f57808 DEBUG]:
483 β The validation of the token for application/identity completed with the following results:
484 β - It's expired: true
485 β - It's been revoked: true
486 β - It's invalid in identity: true
Hi, thanks for creating the issue!
I'm not sure what's happening yet, but could you try running pnpm shopify auth logout
? It looks like something is wrong with the authentication.
Hi, thanks for creating the issue!
I'm not sure what's happening yet, but could you try running
pnpm shopify auth logout
? It looks like something is wrong with the authentication.
WOW! This fixed it.
I wasted my entire day on this π. Most probably the issue was some conflict in migrating from old CLI to the new one. Although I had completely uninstalled the old cli before using the current one.
Perhaps we can document this somewhere?
@rohanrajpal I'm sorry you wasted your day, but happy to see it worked.
I don't think it's related to the old CLI, but I've found a possible cause and created a PR to fix it. It shouldn't happen again (after the next release).
pnpm shopify auth logout
No worries. I'm glad there's a PR already with a potential fix :)
Please confirm that you have:
In which of these areas are you experiencing a problem?
App
Expected behavior
I created a new Shopify App and ran
pnpm dev.
Expected the Shopify Partner login link to appear.Actual behavior
pnpm dev
failed withexit code 1
Stack trace
here are the verbose shopify logs