Error 500 on PhoneGap Build API V1

  • 1
  • Problem
  • Updated 9 years ago
Error 500 on PhoneGap Build API V1

Here's my call:
curl -F file=index.html -u gh@nsbasic.com:xxxx -F 'data={"title":"Hello World","description":"test app", "package":"com.nsbasic.www","version":"1.0.0","create_method":"file"}' https://build.phonegap.com/api/v1/apps

Here is what I get:

<!DOCTYPE html SYSTEM>

We're sorry, but something went wrong (500)
(etc)
Photo of gh

gh

  • 34 Posts
  • 0 Reply Likes

Posted 9 years ago

  • 1
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
The problem is you're sending the string "index.html" in your post, rather than the file index.html. In curl, this is done with an @ symbol:


curl -F file=@index.html -u gh@nsbasic.com:xxxx -F 'data={"title":"Hello World","description":"test app", "package":"com.nsbasic.www","version":"1.0.0","create_method":"file"}' https://build.phonegap.com/api/v1/apps


I'm updating the API now to return a better error message for this case.
Photo of gh

gh

  • 34 Posts
  • 0 Reply Likes
That was it - thanks!