-
Notifications
You must be signed in to change notification settings - Fork 43
Calling the elevation API with a POST request #65
Comments
If the request is too large you'll get back an http 413 from this code: https://github.com/kevinkreiser/prime_server/blob/master/src/http_protocol.cpp#L404 Most importantly though this size limit applies to both POST and GET (and any other type of request). So the limits do not differ. "Failed to parse json request" is a message that |
also, can you get us a request that produces this behavior so we can investigate what is going on? |
I'm wondering if the url encoded polyline is somehow tripping this up. like perhaps undefined behavior can occur when the url decoded polyline gets polyline decoded into bogus values. have you tried |
Hi,
when calling the elevation API I noticed that for some of the longer path requests I started getting "Failed to parse json request" error. The json query parameter was probably too long and got cut off. So I tried sending the JSON in a POST HTTP body instead and it worked. I think mentioning this in the docs could be useful.
Ondrej
The text was updated successfully, but these errors were encountered: