M1 Processor's isn't compatible with Zendesk custom side app | Community
Skip to main content

M1 Processor's isn't compatible with Zendesk custom side app

  • November 3, 2022
  • 0 replies
  • 0 views

MeeAe

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