Question:
When I try to do a REST Api request using postman, everything work well but my wix code or nodejs code don’t work and send {“message”:“Internal Server Error”,“details”:{}}
Product:
I use a script in the backend of wix
What have you already tried:
I trys the following request :
https://www.wixapis.com/members/v1/members?fieldSet=FULL
With a refreshed acces token
but in wix nothing work :
export async function listMember() {
return (await fetch("https://www.wixapis.com/members/v1/members?fieldSet=FULL", {
"method": "get",
"headers": {
"Authorization": "Bearer "+(await refreshToken()).access_token
}
})
.then((httpResponse) => {
if (httpResponse.ok)
return httpResponse.json().then((value) => { return value; });
else
return JSON.parse(JSON.stringify(httpResponse));
})
.then((json) => { return json })
.catch(err => { return err }))
}