I am using the 'Matrix Service ’ to collect some distance matrixes, and some times it works and some other times i just get lots of errors, but I am not sure if I am using it wrong or if the service is under maintenance, because it had happened before. The thing is that i have not found anything online that indicates that the service is under maintenance, so i am still not sure??
hi,
It’s errors like the ones below. I wanted also to make clear that even when i try to run the example from the documentation in a prototypical environment e.g. CodePen no data is being fetched and I only get the following lines printed in the console.
console:
"Status:" 0
"Headers:" ""
"Body:" ""
errors
POST api.openrouteservice.org/v2/matrix/driving-car net::ERR_FAILED 403 (Forbidden)
Access to fetch at api.openrouteservice.org/v2/matrix/driving-car' from origin localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.Understand this errorAI
this looks like a problem with your setup - we have no experience using CodePen, and it seems like this is not an issue related to openrouteservice but to CodePen.