Richard Liu
11/10/2022, 5:33 AMtype=Not Acceptable, status=406
when using https
methods? I am using <http://https.post|https.post>
, and tried adding Accept
property, but didn’t seem to make any differences as it still output the error.
I tried reaching the endpoint with Postman with same parameter, and it went through. so I believe it might not be an issue at the endpoint I am hittting.
var header = {
"Content-Type": "application/json;charset=utf-8",
"client-id": "MY-CLIENT-ID",
"client-secret": "MY-CLIENT_SECRET",
Accept: "*/*",
};
<http://https.post|https.post>({
url: 'URL',
body: 'data',
header: header,
});
battk
11/10/2022, 5:56 AMbattk
11/10/2022, 5:56 AMRichard Liu
11/13/2022, 5:07 PM<http://https.post|https.post>
function, it should’ve been headers
property instead of `header`:
<http://https.post|https.post>({
url: 'URL',
body: 'data',
headers: header,
});