Skip to content

Commit

Permalink
Debug auth error
Browse files Browse the repository at this point in the history
  • Loading branch information
ram-senth committed Sep 7, 2024
1 parent d02ffb2 commit efb24a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/seer/json_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit efb24a7

Please sign in to comment.