Processing REST response from public link

AhmadE
Tera Expert

Hi all,

 

I'm looking to sync public weather data to a table in ServiceNow for reporting purposes, however what looks like a simple GET call is not working.

 

For reference, this is a sample URL which you can paste in your browser to see the response as well as any online API testing tool: https://api.weather.bom.gov.au/v1/locations/r7hgdpk/forecasts/daily

 

I receive a 400 response with the below message

<HTML><HEAD><TITLE>Error</TITLE></HEAD><BODY>
An error occurred while processing your request.<p>
Reference&#32;&#35;253&#46;42052017&#46;1716276213&#46;1168e795
<P>https&#58;&#47;&#47;errors&#46;edgesuite&#46;net&#47;253&#46;42052017&#46;1716276213&#46;1168e795</P>
</BODY></HTML>

 

I've tried adding headers that I find auto-generated by Postman/online tools, like "Accept: */*" and ""Accept-Encoding: gzip" to no avail, if anyone has a fix that would be appreciated.

1 ACCEPTED SOLUTION

Kai Tingey
Tera Guru

can you share how you are doing this? worked for me first go.

 

i set up a new outbound rest message in our test environment pointed at that end point and it worked without any further configuration.

 

KaiTingey_0-1716337350926.png

KaiTingey_1-1716337391523.png

KaiTingey_2-1716337431816.png

 

 

View solution in original post

5 REPLIES 5

It works in my PDI as well as my other development instance so this issue is specific to one of my instances.