M1 Processor's isn't compatible with Zendesk custom side app
Running into an error when trying to connect API's into a side app. Able to get a response through the postman client and curl through the terminal. Confirmed that this is for any mac machine with a M1 processor.
Another dev didn’t have a problem, has a 2019 apple machine (intel based).
node:node version 16.17.1
zcli: @zendesk/zcli/1.0.0-beta.24 darwin-x64 node-v16.17.1
react v 17.0.2
webpack v 4.16.0
Sample snippet:
const username = 'CARLSONINC'
const pass = 'Carlson1QA'
const panelistId = 312449502
const credentials = btoa(`${username}:${pass}`)
const req = {
url: `https://test.ncponline.com/ncpzendeskapi/panelist/${panelistId} (https://test.ncponline.com/ncpzendeskapi/panelist/$%7BpanelistId%7D)`,
type: 'GET',
contentType: 'application/json',
secure: false,
headers: {
Authorization: `Basic ${credentials}`,
},
}
client
.request(req)
.then((res) => {
console.log(res)
})
.catch((e) => console.error(e))
댓글을 남기려면 로그인하세요.
0 댓글