REST API Error 500

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

Some things you might want to check:

  • Is (await refreshToken()).access_token returning a proper access token?
  • Does the requestor have the right permissions for a fieldSet=FULL request?
  • Is the code accessing the correct end point? I see endpoints like list-members and get-member but not just member: https://www.wixapis.com/members/v1/members?fieldSet=FULL

To the first point, I verified the access token by using it with postman and the access token work properly;
Then the fetch works in the backend, so how to know if I have the right permissions ?
And for this endpoint, I see the function on this page : Get Member | REST (wix.com)

Something strange : After some retries with the same configuration the script works whereas the wix script is always the same and of course the postman script (that worked since the start) is also the same.