GET https://{url}.zendesk.com/api/v2/help_center/users/15344523818135/articles net::ERR_FAILED 200
Posted Jun 19, 2023
Facing net::ERR_FAILED 200 issue in the API.
What is the solution for this?
0
8
Posted Jun 19, 2023
Facing net::ERR_FAILED 200 issue in the API.
What is the solution for this?
0
8 comments
Sitaram Kudireddy
0
Sitaram Kudireddy
im calling the API from an external website 1263213599189
can you please suggest where can i take the token, and how to use in the api.
give me an example.
0
Pulkit Pandey
Hi Sitaram Kudireddy
Are you using the above approach within your help center theme or are you calling the API from an external website?
Thank You
Pulkit
Team Diziana
0
Sitaram Kudireddy
0
Sitaram Kudireddy
}`,
0
Pulkit Pandey
Hi Sitaram Kudireddy
The link you shared above Is restricted to the signed-in user only so I can't look into the issue for now.
Can you please share how you call the API on your js file?
Thank You
Pulkit
Team Diziana
0
Sitaram Kudireddy
https://example.zendesk.com/hc/restricted?return_to=https%3A%2F%2Fexample.zendesk.com%2Fhc%2Fapi%2Fv2%2Farticles&locale=en-us
here im facing the issue.
{
"message": "Network Error",
"name": "AxiosError",
"stack": "AxiosError: Network Error\n at XMLHttpRequest.handleError (http://localhost:3000/static/js/bundle.js:469408:14)",
"config": {
"transitional": {
"silentJSONParsing": true,
"forcedJSONParsing": true,
"clarifyTimeoutError": false
},
"adapter": [
"xhr",
"http"
],
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 0,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
"env": {},
"headers": {
"Accept": "application/json",
"Authorization": "Basic xexampleexampleexampleexampleexampleexampleexampleexampleexampleexampleexampleexampleexampleexampleexampleexampleexampleexample=="
},
"method": "get",
"url": "https://example.zendesk.com/api/v2/help_center/articles"
},
"code": "ERR_NETWORK",
"status": null
}
0
Pulkit Pandey
Hi Sitaram Kudireddy
The API is working fine and giving the data based on the User ID, below is the code which I am using, please give a try to the below code.
Let me know if it solves your issue
Thank You
Pulkit
Team Diziana
0
Sign in to leave a comment.