Closed Zach10a closed 2 years ago
CI tests also fail due to a FileNotFoundError
. This doesn't seem related to any OSM query problems...
So this PR now cycles through all of the global instances allowed by Overpass. It appears something has changed with their system that sometimes causes issues with connection, however, when this happens the user is now given the error and promoted to regenerate. I'll keep looking to find the change that's happened with the API.
Have you tried reverting to something like v0.11.0 and seeing if the same problem exists? If that works I suggest a git bisect
would be in order :)
Tried releases all the way back to v0.11.0, fairly sure this is an issue with the Overpass servers.Seen a couple of comments online saying they are quite busy.
It appears changing it from a GET request to a POST request has worked. The comment with this research (from @aliaksei135 ) is linked here
Changed headers as requested
This is ready to rumble, merging sooner rather than later would be ideal!
This PR adds more URLs for the program to try upon one of them not responding correctly. It also now displays a message to the user giving them the error that has occurred and asking them to regenerate the plot.
It should be noted that something has happened recently which means that the SSL certificate was throwing errors when trying to access the Overpass API. Until I figure out how we can fix this the varify flag has been set to False. As no secure data is being transmitted this should be ok for now, however, if we have to start using API keys then this needs to be fixed.