
Slava Roikhel
Joined Jul 05, 2023
·
Last activity Jul 13, 2023
Following
0
Followers
0
Total activity
3
Votes
0
Subscription
1
ACTIVITY OVERVIEW
BADGES
ARTICLES
POSTS
COMMUNITY COMMENTS
ARTICLE COMMENTS
ACTIVITY OVERVIEW
Latest activity by Slava Roikhel
Slava Roikhel commented,
Community comment Developer - Zendesk SDKs
Thanks, I just removed the secure when debugging locally and added the email & pass & API key from .env variables.
View comment · Posted Jul 13, 2023 · Slava Roikhel
0
Followers
0
Votes
0
Comments
Slava Roikhel created a post,
Post Developer - Zendesk SDKs
When debugging locally and trying to call google authenitcation api call for example I get proxy errors and a code of 422.
It works in production, but doesn't work locally with "?zcli_apps=true"
Proxy error: {:code=>"UnprocessableEntity", :status=>"422", :title=>"Unprocessable Entity", :message=>"Failed to get installation and oauth information for app."}
The code were using :
const AUTH_URL =
'https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key={{setting.apiKey}}';
async function authenticate() {
const settings = {
url:AUTH_URL,
type:'POST',
contentType:'application/json',
data:JSON.stringify({
email:'{{setting.email}}',
password:'{{setting.password}}',
returnSecureToken:true,
}),
secure:true,
dataType:'json',
};
const response = await_client.request(settings);
return response.idToken;
}"
Tried "@zendesk/zcli": "1.0.0-beta.35" and "1.0.0-beta.32".
Disabled chrome addons.
Edited Jul 09, 2023 · Slava Roikhel
0
Followers
2
Votes
2
Comments