Recent searches
No recent searches
ZAF Secure settings issue
Posted Nov 13, 2023
Hi team,
I'm currently working on an application which uses secure requests. I have been able to successfully connect to one external API but I've having trouble with another.
Here is a test function i've created:
asyncfunctiongetReports() {
try {
constdata = awaitclient.request({
url:'https://go-admin-api-qa.cambridgedev.org/v2/reports.list?action=PROVISION_USERS',
type:"GET",
accepts:"application/json",
secure:true,
headers: {
Authorization:`Bearer {{setting.GoAdminApiToken}}`,
}
})
console.log(data)
} catch (error) {
console.error(error.message)
}
}
Here is the error:
Request Method: GET
Status Code: 401 Unauthorized
Remote Address: 104.16.53.111:443
Referrer Policy: strict-origin-when-cross-origin
Here is the manifest:
"domainWhitelist": [
"api.test.edjin.com",
"api.edjin.com",
"go-admin-api-qa.cambridgedev.org/v2/reports.list?action=PROVISION_USERS",
"go-admin-api-qa.cambridgedev.org",
"go-admin-api-qa.cambridgedev.org/v2"
],
"parameters": [
{
"name": "EdjinApiToken",
"type": "text",
"secure": true,
"required": true
},
{
"name": "GoAdminApiToken",
"type": "text",
"secure": true,
"required": true
}
],
I've contacted the owners of the API and they told me they can't see any requests from Zendesk.
interestingly enough, when i remove the /v2 domain from the allow list, i get a 400 error
I should mention, that I've tested in POSTman without any issue.
Any advice?
Thanks :)
0
4
4 comments
Vj Gunawardana
Hoping to get this bumped up Zendesk
0
Tipene Hughes
Hey Vj Gunawardana,
Can you let me know the approximate time you last run the requests? I'll check through our logs to see what info I can find.
Thanks!
Tipene
0
Vj Gunawardana
Hey Tipene Hughes,
Thanks for getting back to me :) I've just run two requests back to back.
Mon, 20 Nov 2023 20:26:42 GMT
Vj
0
Tipene Hughes
0