Hello together,
I'm facing a problem with external API call. It's end up with 502, even the api is available and manifest allows the api call
the code
method: 'POST',
headers: {
'api-key': `${process.env.auth}`,
'Content-Type': 'application/json'
},
body: JSON.stringify(request)
});
if(!response.ok){
console.error(JSON.stringify(response));
throw new Error(`Error: ${response.status} ${response.statusText} ${await response.text()}`);
}
Manifest.yml
permissions:
external:
fetch:
backend:
modules:
jira:issuePanel:
...
ERROR 10:23:14.409 {"size":0,"timeout":0} --> first line of console.error(JSON..
ERROR 10:23:14.423 Error: Error: 502 Bad Gateway Bad Gateway
is that beacause, I'm using url without www?