Skip to content

Instantly share code, notes, and snippets.

@aaronfeng
Created March 31, 2015 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronfeng/a8736ad319e2050efbb4 to your computer and use it in GitHub Desktop.
Save aaronfeng/a8736ad319e2050efbb4 to your computer and use it in GitHub Desktop.
heka bulk api error
POST /_bulk HTTP/1.1
Host: 172.17.0.36:9200
User-Agent: Go 1.1 package http
Content-Length: 97
Accept: application/json
Accept-Encoding: gzip
{"index":{"_index":"2015.03.31","_type":"7d98073d388e"}}
{"bar":"boo","log":"awesome"}
HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=UTF-8
Content-Length: 99
{"error":"ActionRequestValidationException[Validation Failed: 1: no requests added;]","status":400}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment