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
Basically I was using the "auth/callback" endpoint to run some webhook creation functions and I was being constantly thrown this error
Cannot complete OAuth process. Could not find an OAuth cookie for shop url ...
So I gave my app a fresh install to check if the OAuth was being properly installed and this error was thrown right after I installed it in my store:
Could not find OAuth cookie | ... Failed to complete OAuth with error: Error: Cannot complete OAuth process. Could not find an OAuth cookie for shop url: ...
Thinking it was some sort of weird bug since I converted the template shopify provides us to Typescript, I cloned the base JS template again and gave it another go.
Lo and behold, the same error is being thrown. Which is weird since the app is installed normally in my stores, but everything that uses the OAuth cookie throws this error and ends up breaking the development process.
I've seen similar issues like mine in #639 and here.
I think this can be quite serious since this is popping up in the base template and can be very difficult to fix to any new users that are trying to get into app development.
Here is my template for reference. It is basically the same as the original one, just converted it to TS, installed eslint and prettier and put the backend code in a different folder. I also used the original node-template Shopify provides us.
Here it the code that I've been trying to run to create an HTTP webhook
`Cannot complete OAuth process. Could not find an OAuth cookie for shop url ...`
`Could not find OAuth cookie | ...`
`Failed to complete OAuth with error: Error: Cannot complete OAuth process. Could not find an OAuth cookie for shop url: ...`
Expected behavior
App should install and detect OAuth cookies normally.
Actual behavior
App throws said errors. It works normally but any OAuth related logic, like webhook creation, breaks completely.
Steps to reproduce the problem
Clone the template
Run yarn or npm install in the root directory
Run yarn dev or npm dev to start the development tunel
Install in any development store and watch the logs to check for the mentioned errors. Also try copying and pasting the mentioned code to check for OAuth errors when creating/registering webhooks.
The text was updated successfully, but these errors were encountered:
Issue summary
Basically I was using the "auth/callback" endpoint to run some webhook creation functions and I was being constantly thrown this error
Cannot complete OAuth process. Could not find an OAuth cookie for shop url ...
So I gave my app a fresh install to check if the OAuth was being properly installed and this error was thrown right after I installed it in my store:
Could not find OAuth cookie | ...
Failed to complete OAuth with error: Error: Cannot complete OAuth process. Could not find an OAuth cookie for shop url: ...
Thinking it was some sort of weird bug since I converted the template shopify provides us to Typescript, I cloned the base JS template again and gave it another go.
Lo and behold, the same error is being thrown. Which is weird since the app is installed normally in my stores, but everything that uses the OAuth cookie throws this error and ends up breaking the development process.
I've seen similar issues like mine in #639 and here.
I think this can be quite serious since this is popping up in the base template and can be very difficult to fix to any new users that are trying to get into app development.
Here is my template for reference. It is basically the same as the original one, just converted it to TS, installed eslint and prettier and put the backend code in a different folder. I also used the original node-template Shopify provides us.
Here it the code that I've been trying to run to create an HTTP webhook
@shopify/shopify-app-express
version: ^2.1.3Expected behavior
App should install and detect OAuth cookies normally.
Actual behavior
App throws said errors. It works normally but any OAuth related logic, like webhook creation, breaks completely.
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: