Calls to /api/v2/projects fail when supplying latitude and longitude
complete
H
Honey Swordtail
When making a call to the https://cloud.magicplan.app/api/v2/projects endpoint and specifying the latitude and longitude of the address, the request fails with "500: Internal Server Error".
I have tried both with the other address fields set and just with the latitude and longitude set. I have also tried the example shown in your Swagger API: https://app.swaggerhub.com/apis-docs/magicplan/magicplanCloudApi. All fail in the same way.
Example cURL request: curl --header "key: XXX" --header "customer: YYY" -H "Content-Type: application/json" https://cloud.magicplan.app/api/v2/projects --verbose --data '{"email":"person@example.com","name":"Test","address":{"street":"Infinite Plan Street","street_number":"1A","city":"Munich","postal_code":"15615","country":"Germany","longitude":-20.5357,"latitude":-99.625}}'
Log In
H
Honey Swordtail
Thanks so much for fixing this Susanne :) I can confirm that it works.
It might also be a good idea to update your Swagger API's input and response examples here https://app.swaggerhub.com/apis-docs/magicplan/magicplanCloudApi/1.2#/project/post_projects with the changes i.e. latitude and longitude are now of type string instead of double - and the example data given there seems to be incorrect (they don't match the address and latitude cannot be more than +/-90 in value).
This post was marked as
complete
Susanne Reich
Hi everyone, this issue was fixed. Please upgrade your app version in the App Store or Play Store now to check out the improved version. Thanks!
This post was marked as
in progress
Susanne Reich
planned