Recent searches
No recent searches
Axios error during attempt previewing theme changes locally
Posted Jan 09, 2025
Hi,
I want to upgrade my custom guide theme using zcli and previewing theme changes locally. There are articles that I based my zcli installation: https://developer.zendesk.com/documentation/apps/getting-started/using-zcli/.
Firstly, I generated zendesk API (I made this using API from /admin/apps-integrations/apis/conversations-api
). After confirmed API Key to generate, there is available three keys: App ID, Key ID and Secret Key.
Before I tried to log in, I installed using npm install @zendesk/zcli -g
. Command zcli help
returns message about version, usage etc, so I guess installation went well.
Finally - I made a try to log in using API key that I've generated. We're using SSO, so I passed my credentials up to recommendations from article I mentioned before. Any of key that I received is not working though.
This is the message, that I received after try to log in using terminal:
AxiosError: There is no suitable adapter to dispatch the request -
adapter fetch is not supported by the environment
Code: ERR_NOT_SUPPORT
Did I generate correctly API Key? I am not sure about that.
0
3 comments
James Peterson - Eastern Logic
Hi Radosław Gryczan ,
If I'm not wrong, you should be using a ‘regular’ API token and not a Conversations API key. Please see this article for more information about API tokens.
Cheers ~
0
Radosław Gryczan
Hi James Peterson - Eastern Logic , you have absolutely right. i changed my key up to regular one, but during log in attemp, zcli returns me
Moreover, using API through curl works fine. We are using SSO to log in, so I am appending /token when I am passing my email, but it still not work (I tried to do it without token also, but its doesnt work).
0
James Peterson - Eastern Logic
Hi Radosław Gryczan ,
May I confirm that you have enabled Token access in the Zendesk API settings page?
0