×

Notice

The forum is in read only mode.

API gives error code 502

11 months 1 week ago #2658 by vunwa893a
I'm getting errors for all methods of access:

# Anon user
url = ""
r = (url)
print()
502

# Request for 1 hour of data, anonymous:
begin = int(datetime(2023, 12, 8, 0, 0, 0, tzinfo=).timestamp())
begin = int(() - 3600)
end = int(())
print(begin)
print(end)
url = "{begin}&end={end}"
r = (url, auth=(uname, pwd))

# Request for all states, with authentication
url = ""
uname = "..."
pwd = "..."
import requests
r = (url, auth=(uname, pwd))

I also tried OpenSkyApi

from opensky_api import OpenSkyApi
api = OpenSkyApi()
s = ()
print(s)
None

and this one (as the docs for the API say I can get up to 7 days of data):
import time
from datetime import datetime, timezone
begin = datetime(2023, 12, 8, 0, 0, 0, tzinfo=).timestamp()
end = ()
arrivals = ("RPUH", begin=begin, end=end)
print(type(arrivals))
<class 'NoneType'>

Are there any working examples out there?

The Impala data request form is currently not working.
8 months 1 week ago #2705 by strohmeier
Replied by strohmeier on topic API gives error code 502
You should have checked if the API was up first. Data request form has also been working again.
Powered by Kunena Forum
This website uses cookies to offer you the best experience of our services. By using this website you agree to our privacy policy!