Skip to content

Instantly share code, notes, and snippets.

@huslage
Created April 25, 2011 03:39
Show Gist options
  • Save huslage/940126 to your computer and use it in GitHub Desktop.
Save huslage/940126 to your computer and use it in GitHub Desktop.
Annoying Error
➜ Safecast curl -vvv --request PUT --header "X-PachubeApiKey: 7dKrbzxeRr8fOS_720XzWCeFlhdyB1iPqAqA8h-FMc4" --data \@test.json "http://api.pachube.com/v2/feeds/24200.json"
* About to connect() to api.pachube.com port 80 (#0)
* Trying 173.203.98.29... connected
* Connected to api.pachube.com (173.203.98.29) port 80 (#0)
> PUT /v2/feeds/24200.json HTTP/1.1
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3
> Host: api.pachube.com
> Accept: */*
> X-PachubeApiKey: 7dKrbzxeRr8fOS_720XzWCeFlhdyB1iPqAqA8h-FMc4
> Content-Length: 142633
> Content-Type: application/x-www-form-urlencoded
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< HTTP/1.1 400 Bad Request
< Date: Mon, 25 Apr 2011 03:33:03 GMT
< Content-Type: application/json; charset=utf-8
< Connection: keep-alive
< Cache-Control: no-cache
< Content-Length: 111
< Age: 0
<
* Connection #0 to host api.pachube.com left intact
* Closing connection #0
{"errors":"Invalid version specification. Permitted versions are 5, 0.6 and 1.0.0","title":"JSON Parser Error"}%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment