Server down today?

The api works fine a couple days before, but when I call the API, it shows this.

openrouteservice.exceptions.ApiError: 500 ({‘code’: 3, ‘error’: ‘Invalid routing response: HTTP/1.1 503 Service Unavailable\r\nDate: Fri, 26 Apr 2024 13:58:31 GMT\r\nServer: Apache/2.4.54 (Unix)\r\nContent-Length: 299\r\nConnection: close\r\nContent-Type: text/html; charset=iso-8859-1\r\n\r\n\n\n503 Service Unavailable\n\n

Service Unavailable

\n

The server is temporarily unable to service your\nrequest due to maintenance downtime or capacity\nproblems. Please try again later.

\n\n’})

This is my code.
coords = [
[-87.7898356, 41.8879452],
[-87.7808524, 41.8906422],
[-87.7895149, 41.8933762],
[-87.7552925, 41.8809087],
[-87.7728134, 41.8804058],
[-87.7702890, 41.8802231],
[-87.7787924, 41.8944518],
[-87.7732345, 41.8770663],
]
vehicle_start = [-87.800701, 41.876214]
m = folium.Map(location=list(reversed([-87.787984, 41.8871616])), tiles=“cartodbpositron”, zoom_start=14)
for coord in coords:
folium.Marker(location=list(reversed(coord))).add_to(m)

folium.Marker(location=list(reversed(vehicle_start)), icon=folium.Icon(color=“red”)).add_to(m)
m
vehicles = [
ors.optimization.Vehicle(id=0, profile=‘driving-car’, start=vehicle_start, end=vehicle_start, capacity=[5]),
ors.optimization.Vehicle(id=1, profile=‘driving-car’, start=vehicle_start, end=vehicle_start, capacity=[5])
]
jobs = [ors.optimization.Job(id=index, location=coords, amount=[1]) for index, coords in enumerate(coords)]
optimized = client.optimization(jobs=jobs, vehicles=vehicles, geometry=True)

+1
I have the same issue. Server is responding with a 503 Service Unavailable. Also confirmed via the API playground. Could anyone advise please?

Looks like this is now resooved. Thanks team!

1 Like