Skip to content

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

new case clause for handling browserless error response (#5600)

RobertJoonascd875eee9689
diff --git a/lib/plausible/installation_support/checks/installation.ex b/lib/plausible/installation_support/checks/installation.ex
index 50208a52d5..a18951c81f 100644
--- a/lib/plausible/installation_support/checks/installation.ex
+++ b/lib/plausible/installation_support/checks/installation.ex
@@ -150,6 +150,13 @@ defmodule Plausible.InstallationSupport.Checks.Installation do
put_diagnostics(state, plausible_installed?: false, service_error: status)
+ {:ok, %{status: status, body: body}} ->
+ Logger.warning(
+ "[VERIFICATION] Unexpected Browserless response (data_domain='#{data_domain}'): status=#{status}, body=#{inspect(body)}"
+ )
+
+ put_diagnostics(state, plausible_installed?: false, service_error: status)
+
{:error, %{reason: reason}} ->
Logger.warning(
"[VERIFICATION] Browserless request error (data_domain='#{data_domain}'): #{inspect(reason)}"