ZAF Secure settings issue | Community
Skip to main content

ZAF Secure settings issue

  • November 13, 2023
  • 4 replies
  • 0 views

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 :) 

4 replies

  • Author
  • November 19, 2023

Hoping to get this bumped up @Zendesk


Tipene
  • November 20, 2023

Hey @vj20,

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


  • Author
  • November 20, 2023

Hey @tipene

Thanks for getting back to me :) I've just run two requests back to back. 

Mon, 20 Nov 2023 20:26:42 GMT

Mon, 20 Nov 2023 20:26:42 GMT
 
Let me know if you need any other details!

Vj

Tipene
  • November 21, 2023
Thanks for this! I'm going to create a ticket so I can grab a few more details off you. You should see an email coming through from me shortly.