Skip to content

Instantly share code, notes, and snippets.

@potomak
Created July 25, 2011 23:32
Show Gist options
  • Save potomak/1105541 to your computer and use it in GitHub Desktop.
Save potomak/1105541 to your computer and use it in GitHub Desktop.
Freckle API entries error
{
"entry":{
"minutes": "25min",
"date": "2011-07-25",
"description": "one, two",
"user": "gcappellotto@letsfreckle.com"
}
}
* About to connect() to gcappellotto.letsfreckle.com port 80 (#0)
* Trying 173.45.229.8... connected
* Connected to gcappellotto.letsfreckle.com (173.45.229.8) port 80 (#0)
> POST /api/entries.json HTTP/1.1
> User-Agent: curl/7.19.7 (i386-apple-darwin10.2.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3
> Host: gcappellotto.letsfreckle.com
> Accept: */*
> Content-type: application/json
> X-FreckleToken:MY_APP_TOKEN
> Content-Length: 112
>
< HTTP/1.1 422 Unprocessable Entity
< Date: Mon, 25 Jul 2011 23:30:59 GMT
< Server: Apache
< X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.6
< X-Runtime: 20
< Cache-Control: no-cache
< Content-Length: 1
< Status: 422
< Vary: Accept-Encoding
< Content-Type: text/html; charset=utf-8
<
* Connection #0 to host gcappellotto.letsfreckle.com left intact
* Closing connection #0
curl -d @entry.js -H "Content-type: application/json" -H "X-FreckleToken:MY_APP_TOKEN" http://gcappellotto.letsfreckle.com/api/entries.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment