Getting 503 http response in calling https:// api.openrouteservice.org /v2/matrix/driving-car

From yesterday (28/Dec/2022) , while calling api (https:// api.openrouteservice.org /v2/matrix/driving-car) some times i am getting 503 http response and some times 200 http response. 503 status code means - The server is currently unavailable due to overload or maintenance. Please help me this because i am using that api in my code.

Hey,

sorry for the outage you seem to have experienced.
Since the matrix endpoint for driving-car is back up and running, there’s nothing to do here.

Best regards

@jschnell sorry but still problem is exist. some times api is giving 200 and sometimes 503.

my code below -

body = {‘locations’: [[77.64510728388909, 12.890417710848649], [77.61198, 12.91631], [77.61222479999999, 12.9159284]], ‘metrics’: [‘distance’, ‘duration’]}

headers = {
‘Accept’: ‘application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8’,
‘Authorization’: ‘XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX’,
‘Content-Type’: ‘application/json; charset=utf-8’
}

call = requests.post(‘https://api.openrouteservice.org/v2/matrix/driving-car’,
json=body, headers=headers)

print(call.status_code)

Hey,

apparently, there were issues with the car profile again last night, so given that this query runs without a problem today, I’d again assume that the error is related to this.
You can check here whether the profiles are up if you encounter issues again.

May I ask what you are doing that leads you to experience these issues again and again?

Best regards