wrld3d / wrld-indoor-maps-api

Contains details of our indoor map format & API + a tutorial to help you get started.
Other
97 stars 40 forks source link

HTTP/1.1 500 Internal Server Error Receiving #4

Open MFaisalZaki opened 6 years ago

MFaisalZaki commented 6 years ago

I'm trying wrld with provided example westport-house-outline.geojson and I receive "HTTP/1.1 500 Internal Server Error", Here is the command I executed:

curl -v -XPOST https://indoor-maps-api.wrld3d.com/v1/edits/?token= -F name=myhome -F venue_street_address="egypt" -F venue_phone_number="00201011854060" -F venue_email="iahmedwael@gmail.com" -F submission_contact_email="iahmedwael@gmail.com" -F venue_outline=/Users/marwanfaisal/Downloads/wrld-indoor-maps-api-master/examples/westport-house-outline.geojson

This is error message: An unhandled lowlevel error occurred. The application logs may have details.

I have attached a screenshot from my terminal. screen shot 2018-04-06 at 7 42 16 pm

any advice.

jlunderwood commented 6 years ago

The venue outline parameter needs to be a string which indicates the path to the file, as -F file="@/path/to/my/file" . Note the initial @ character in the string -- this tells curl that the argument is a path.