The POST request to the /elevations-api endpoint is failing with a server error.
The usage examples in the README are reproducing this bug. I made several requests before "Sun, 23 Apr 2023 13:59:31 GMT" that you can check in the logs. The OPTIONS request on the same endpoint is working fine.
Curl:
curl --request POST --url https://europe-west1-windeurope72-private.cloudfunctions.net/elevations-api --header 'Content-Type: application/json' --data '{"coordinates": [[54.53097, 5.96836]]}
'
500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
What is the expected behavior?
Request to the /elevations-api responds with the correct elevation data
Bug report
What is the current behavior?
The POST request to the /elevations-api endpoint is failing with a server error.
The usage examples in the README are reproducing this bug. I made several requests before "Sun, 23 Apr 2023 13:59:31 GMT" that you can check in the logs. The OPTIONS request on the same endpoint is working fine.
Curl:
What is the expected behavior?
Request to the /elevations-api responds with the correct elevation data
Your environment
Deployment revision: 0.2.4