XML Parsing Error - Dark Sky API call

XML Parsing Error - Dark Sky API call
0

#1

Greetings!

I have had the Dark Sky API call to get weather details working properly for a while.
Now it has suddenly stopped working. The browser console is showing the following error:

XML Parsing Error: syntax error
Location: https://cors-anywhere.herokuapp.com/https://api.darksky.net/forecast/d870a7bf815564342d5b3702188b2022/-34.0693771,18.849822?units=ca&exclude=[hourly,minutely]
Line Number 1, Column 1:

This has happened before two evenings ago. Then the following morning it was working again. Can anyone tell me what is going on here?
Thanks, Rainer


#2

I suppose cors-anywhere is having some problems.


#3

A direct browser call to https://cors-anywhere.herokuapp.com is working.
The demo referenced on that page (https://robwu.nl/cors-anywhere.html) also seems to be working.

However when I do a browser call using the full url…
https://cors-anywhere.herokuapp.com/https://api.darksky.net/forecast/d870a7bf815564342d5b3702188b2022/-34.0693771,18.849822?units=ca&exclude=[hourly,minutely]
… it returns this:

Missing required request header. Must specify one of: origin,x-requested-with

So you’re probably right. Have you encountered this? What to do other than hurry up and wait? Bummer :worried:


#4

Back up and running - weird!
Before it started working again I switched to https://crossorigin.me without success.
Went away for a cup of tea and when I came back - all was working again. Switched back to the heroku cors proxy and that is working again too.
I wish I could get to the bottom of this but I’m an absolute beginner and need to move on.