cli: [Bug]: Private access token 401

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Extension

Expected behavior

Extension is shown

Actual behavior

Extension is not shown, but there is an error on console with private access token

Verbose output

npm run deploy --verbose:
New version released to users.                                                                                                                                                                                                                              new-custom-checkout-10

Reproduction steps

  1. Initial app
  2. Generate extension
  3. Run dev and install app, verify extension, and it works
  4. Deploy web to digital ocean app(it works) image
  5. Deploy extension: Build Client ID(cd web/frontend/ && SHOPIFY_API_KEY=REPLACE_ME yarn build) and released image
  6. Verify store, it doesn’t appear: Pasted Graphic

Operating System

Mac OS Monterey

Shopify CLI version (check your project’s package.json if you’re not sure)

^3.48.0

Shell

No response

Node version (run node -v if you’re not sure)

v16.19.0

What language and version are you using in your application?

Node v16.19.0

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (7 by maintainers)

Most upvoted comments

Facing this exact same error , I am able to see the extension when I go via the cli link but with the normal checkout I get this error

Uploading Screen Recording 2024-04-29 at 8.23.29 PM.mov…

This might help few. There is a link at the bottom of the page to Add App in Customizer for Checkout Page. Screenshot 2024-05-12 at 12 22 51 AM Screenshot 2024-05-12 at 12 23 26 AM

I was able to get this working.

If this for development store, first make sure the store has the checkout extensibility preview enabled. If not, try creating a new dev store with the checkout extensibility enabled. image then go to the store, in the customizer section of the theme select checkout page then under sections, enable you extension image now it should show. This is how it is working for me.

Hi @hoannguyen02 👋

Thank you for providing your reproduction steps. This is working as expected because you are missing a step between 5 (deploy) and 6 (see the extension in checkout).

You can follow this guide to complete the missing step, which is to place the extension using the editor:

Checkout UI extensions don’t display in checkout until the merchant uses the checkout editor to add the app and place it in checkout.

The reason why you didn’t see the extension is because you had stopped yarn dev in order to run yarn deploy. This is also why you got ERR_NAME_NOT_RESOLVED for your cloudflare domain (the yarn dev server).

The private access token error is unrelated. You can follow this guide to set up your access token.

I see, I’m afraid I’ve reached the limits of my knowledge on checkout extensions, I’ll escalate to someone who knows more about them 😃