Error: getaddrinfo ENOTFOUND

I am trying to set app properties by sending a put request to app properties endpoint mentioned in restapi documentation.
i am using axios and below is my request,
axios({
method: ‘put’, //you can set what request you want to be
url: ‘https://your-domain.atlassian.com/rest/atlassian-connect/1/addons/addonkey/properties/’+somevalue+’’,
data: bodyData, // (this is a json)
headers: {
‘Accept’: ‘application/json’,
‘Content-Type’: ‘application/json’,
‘X-Atlassian-Token’: ‘no-check’
}
})
when i execute the request i am getting the error
Error: getaddrinfo ENOTFOUND your-domain.atlassian.com
I have did some searching and can’t figure out the issue with this, already checked with nslookup to see if there is any dns issue. no problem with dns also.
Any help would be much appreciated.

Hi @AkalankaJayalath,

I notice the URL has “your-domain.atlassian.com”. Did you mean “your-domain.atlassian.net”?

Regards,
Dugald

@dmorrow sorry, Actually i am using my jira cloud developer instance url. i didn’t put that url here.

Hi @AkalankaJayalath,

I have been able to make the request using test code, but I’m not using axios. Can you simplify your test case and/or use a different mechanism such as fetch.

Regards,
Dugald