Skip to content

Cannot complete OAuth process. Could not find an OAuth cookie for shop url #85

Open
@lutitech

Description

@lutitech

After installation and get this error on my cli. Am only using the nest Api.
`Nest] 1376 - 07/05/2023, 6:19:34 PM LOG [Shopify] [2023-07-05T17:19:34Z] [shopify-api/INFO] Beginning OAuth | {shop: movitt.myshopify.com, isOnline: true, callbackPath: /api/online/callback}
[Nest] 1376 - 07/05/2023, 6:19:34 PM LOG [Shopify] [2023-07-05T17:19:34Z] [shopify-api/DEBUG] OAuth started, redirecting to https://movitt.myshopify.com/admin/oauth/authorize?client_id=9a9b833688216761f62b0b282b7959a3&scope=write_products%2Cwrite_orders&redirect_uri=https%3A%2F%2F3f5e-197-211-53-125.ngrok-free.app%2Fapi%2Fonline%2Fcallback&state=380819473534067&grant_options%5B%5D=per-user | {shop: movitt.myshopify.com, isOnline: true}
[Nest] 1376 - 07/05/2023, 6:19:37 PM LOG [Shopify] [2023-07-05T17:19:37Z] [shopify-api/INFO] Completing OAuth | {shop: movitt.myshopify.com}
[Nest] 1376 - 07/05/2023, 6:19:37 PM LOG [Shopify] [2023-07-05T17:19:37Z] [shopify-api/DEBUG] OAuth request is valid, requesting access token | {shop: movitt.myshopify.com}
[Nest] 1376 - 07/05/2023, 6:19:37 PM LOG [Shopify] [2023-07-05T17:19:37Z] [shopify-api/DEBUG] Making HTTP request - POST https://movitt.myshopify.com/admin/oauth/access_token - Headers: {"User-Agent":["Shopify API Library v7.4.0 | Node v18.16.0"],"Content-Type":["application/json"],"Content-Length":["141"]} - Body: "{"client_id":"9a9b833688216761f62b0b282b7959a3","client_secret":"0ee97e276007eaae592d8cdbc239bdd2","code":"838fcfe1c7c3b3c3abfaf35440d2f6cf"}"
[Nest] 1376 - 07/05/2023, 6:19:38 PM LOG [Shopify] [2023-07-05T17:19:38Z] [shopify-api/DEBUG] Completed HTTP request, received 200
OK
[Nest] 1376 - 07/05/2023, 6:19:38 PM LOG [Shopify] [2023-07-05T17:19:38Z] [shopify-api/INFO] Creating new session | {shop: movitt.myshopify.com, isOnline: true}
[Nest] 1376 - 07/05/2023, 6:27:58 PM LOG [Shopify] [2023-07-05T17:27:58Z] [shopify-api/INFO] Completing OAuth | {shop: movitt.myshopify.com}
[Nest] 1376 - 07/05/2023, 6:27:58 PM LOG [Shopify] [2023-07-05T17:27:58Z] [shopify-api/ERROR] Could not find OAuth cookie | {shop:
movitt.myshopify.com}
[Nest] 1376 - 07/05/2023, 6:27:58 PM ERROR [ExceptionsHandler] Cannot complete OAuth process. Could not find an OAuth cookie for shop url: movitt.myshopify.com

Error: Cannot complete OAuth process. Could not find an OAuth cookie for shop url: movitt.myshopify.com
at Object. (C:\Users\user\Desktop\movit\erp-plugin-shopify\node_modules@shopify\shopify-api\lib\auth\oauth\oauth.ts:159:13)
at Generator.next ()
at fulfilled (C:\Users\user\Desktop\movit\erp-plugin-shopify\node_modules\tslib\tslib.js:164:62)
at processTicksAndRejections (node:internal/process/task_queues:95:5)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions