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

Not able to preview themes despite API token login being accepted #250

Open
mvlad-reb opened this issue Aug 6, 2024 · 5 comments
Open

Comments

@mvlad-reb
Copy link

Expectations

Being able to preview the theme being developed successfully locally, or at the very least getting actionable error messages

Reality

image

Steps to Reproduce

  1. log into zendesk via zcli login -i
  2. navigate to theme folder
  3. try to preview the theme via yarn start / zcli themes:preview
  4. Error 403

Issue details

This API token and setup has worked before, my account has admin access to the guide section on the user side, and i've already tried removing and re-adding profiles to no avail. The error doesn't really provide more issues if the error is on my side or the zendesk side, but checking the API log on the zendesk side doesn't seem to be logging these attempts.

  • Command: zcli themes
  • Version: @zendesk/zcli/1.0.0-beta.47 wsl-x64 node-v16.20.2
  • OS: Ubuntu 22.04 on WSL2
@michel-rely
Copy link

Running into the same issue.

Using:
$ DEBUG=* zcli themes:preview

... Uploading theme... ! Error: Request failed with status code 403 at error (/usr/lib/node_modules/@zendesk/zcli/node_modules/@oclif/core/lib/errors/index.js:28:15) at preview (/usr/lib/node_modules/@zendesk/zcli/node_modules/@zendesk/zcli-themes/dist/lib/preview.js:53:36) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async Preview.run (/usr/lib/node_modules/@zendesk/zcli/node_modules/@zendesk/zcli-themes/dist/commands/themes/preview.js:32:25) at async Preview._run (/usr/lib/node_modules/@zendesk/zcli/node_modules/@oclif/core/lib/command.js:80:22) at async Config.runCommand (/usr/lib/node_modules/@zendesk/zcli/node_modules/@oclif/core/lib/config/config.js:301:25)

Command: zcli themes
Version: @zendesk/zcli/1.0.0-beta.47 .46 .45
OS: Debian in UTM

@vagarogit
Copy link

Same issue here. Any word on a fix?

@mvlad-reb
Copy link
Author

Still getting this issue on 1.0.0 beta 50
image
This is really frustrating.

@michel-rely
Copy link

@mvlad-reb
Copy link
Author

Unfortunately I already have those set up as well with the same values as the ones I input during the login (I had to, otherwise login was failing):
image

still i don't see why they'd be needed any more, since i am successfully logged in and the profile is selected, it should stand to reason that it should just connect using those details there.

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

3 participants