From 586bbeb8ac26a8c22a523683bd069fc3f3f7de68 Mon Sep 17 00:00:00 2001 From: Marko Saric <34340819+metmarkosaric@users.noreply.github.com> Date: Tue, 18 Apr 2023 16:38:32 +0200 Subject: [PATCH] Adding a note to contact us for more API calls (#2858) this should make it clearer to people that they can get more API capacity when they encounter the "Too many API requests" error --- lib/plausible_web/plugs/authorize_stats_api.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plausible_web/plugs/authorize_stats_api.ex b/lib/plausible_web/plugs/authorize_stats_api.ex index dbf6e7cf3..6cefad6bc 100644 --- a/lib/plausible_web/plugs/authorize_stats_api.ex +++ b/lib/plausible_web/plugs/authorize_stats_api.ex @@ -32,7 +32,7 @@ defmodule PlausibleWeb.AuthorizeStatsApiPlug do {:error, :rate_limit, limit} -> H.too_many_requests( conn, - "Too many API requests. Your API key is limited to #{limit} requests per hour." + "Too many API requests. Your API key is limited to #{limit} requests per hour. Please contact us to request more capacity." ) {:error, :invalid_api_key} ->