Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Retry on HTTP2 `:unprocessed` error in `Persistor.Remote` (#5697)

Adrian Gruntkowski3d12ced6fff3
diff --git a/lib/plausible/ingestion/persistor/remote.ex b/lib/plausible/ingestion/persistor/remote.ex
index 62fd3dd100..4238504a68 100644
--- a/lib/plausible/ingestion/persistor/remote.ex
+++ b/lib/plausible/ingestion/persistor/remote.ex
@@ -56,6 +56,10 @@ defmodule Plausible.Ingestion.Persistor.Remote do
true
end
+ defp handle_transient_error(_request, %Req.HTTPError{protocol: :http2, reason: :unprocessed}) do
+ true
+ end
+
defp handle_transient_error(_reqeust, _response), do: false
defp encode_payload(event, session_attrs) do