최근 검색


최근 검색 없음

ZAF Secure settings issue



2023년 11월 13일에 게시됨

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개

Hoping to get this bumped up Zendesk

0


image avatar

Tipene Hughes

Zendesk Developer Advocacy

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


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

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

Vj

0


image avatar

Tipene Hughes

Zendesk Developer Advocacy

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.

0


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물