79466861

Date: 2025-02-25 14:25:54
Score: 1
Natty:
Report link

The problem was at the header content. So, instead of

headers={"Content-Type":"application/json", "Authorization": f"Bearer {access_token}"

I moved the headers from the httpx "client" declaration to outside and replaced it by this:

headers={"Accept":"*/*", "Token": f"Bearer {access_token}"

i only figured this out when I was looking at the token endpoint curl request being genarated at the token app swagger. That was the reason behind the 401 response and utimately the json error

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: c0d3rbox