From efb24a791ae88a385fa8e6e80d1ce3abde9ba924 Mon Sep 17 00:00:00 2001 From: Ram Senthamarai Date: Sat, 7 Sep 2024 05:18:26 -0700 Subject: [PATCH] Debug auth error --- src/seer/json_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/seer/json_api.py b/src/seer/json_api.py index 5c1d192fe..e32b6a1f3 100644 --- a/src/seer/json_api.py +++ b/src/seer/json_api.py @@ -89,7 +89,9 @@ def wrapper(config: AppConfig = injected) -> Any: if auth_header.startswith("Rpcsignature "): parts = auth_header.split() if len(parts) != 2 or not compare_signature(request.url, raw_data, parts[1]): - raise Unauthorized("Rpcsignature did not match for given url and data") + raise Unauthorized( + f"Rpcsignature did not match for given url {request.url} and data" + ) elif auth_header.startswith("Bearer "): token = auth_header.split()[1] try: