-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
current head of master: POST requests start to break with Content-Encoding "snappy" not supported
#3407
Comments
jgehrcke
added a commit
to jgehrcke/loki
that referenced
this issue
Mar 1, 2021
Signed-off-by: Dr. Jan-Philip Gehrcke <jp@opstrace.com>
2 tasks
I'm even more impressed by the defer in this function closing the reader before returning. Gzip might not even be working. EDIT: the defer is fine. |
btw to answer your question this is a bug. |
@jgehrcke , I append several test for HTTP parser. |
cyriltovena
pushed a commit
to cyriltovena/loki
that referenced
this issue
Jun 11, 2021
* Created dedicated section to chunks storage in the doc Signed-off-by: Marco Pracucci <marco@pracucci.com> * Fixed white noise Signed-off-by: Marco Pracucci <marco@pracucci.com> * Addressed review comments Signed-off-by: Marco Pracucci <marco@pracucci.com> * Fixed links Signed-off-by: Marco Pracucci <marco@pracucci.com> * Fixed TestPurger_Restarts flakyness Signed-off-by: Marco Pracucci <marco@pracucci.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In our CI we POST snappy-compressed protobuf messages to
/loki/api/v1/push
. In such POST HTTP requests we set these two headers:This has worked with all previously released versions of Loki.
Now we are testing with Loki's current head of master (
cb59069
). It emits a 400 Bad Request response, with the error messageThe change in behavior is a side effect of this patch: https://github.com/grafana/loki/pull/3291/files
Should we change our HTTP request headers because they are obviously wrong, or is this a bug introduced with #3291?
The Prometheus remote_write HTTP API I believe "wants" to be used with this set of headers:
(inferred from Proms' storage/remote/client.go)
Does
X-Prometheus-Remote-Write-Version: 0.1.0
have any meaning for Loki?The text was updated successfully, but these errors were encountered: