The client.post method retries the request multiple times, if the server answers with an error code like 5xx, even if i set the options to maxAttempts=1.
On my local environment everything works as expected but in production (the published custom app) it doesn’t work.
const headers = { Authorization: '<%= iparam.apiKey %>' };
const body = JSON.stringify(request);
const options = { headers: headers, body: body, maxAttempts: 1 };
client.request.post(url, options)
What goes wrong there?