octue / windeurope72hours-elevations-api

MIT License
0 stars 0 forks source link

The POST request to the /elevations-api endpoint fails with a server error #7

Closed nvn-nil closed 1 year ago

nvn-nil commented 1 year ago

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.

image

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

Your environment

Deployment revision: 0.2.4

nvn-nil commented 1 year ago

@cortadocodes @thclark Mentioning you so you guys get notification.