Skip to main content
Answer

got 401 "Unauthorized" error when using Postman and also sometimes a bad request error

  • March 25, 2025
  • 4 replies
  • 60 views

Forum|alt.badge.img+3

got 401 "Unauthorized" error when using Postman and also  sometimes a bad request error while I did everything  as they did in the course. please help it took a lot of time from me.

Best answer by Mithila Jayalath

Hi ​@Ali-Akram,

Change the environment variable baseURL → baseUrl and try again with a new token. I assume the value of the baseUrl is in the following format.

https://{{cluster}}.cognitedata.com/api/v1/projects/{{project}}

For more infomation, kindly refer to the documentation here.

4 replies

Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img+8
  • Seasoned Practitioner
  • Answer
  • March 26, 2025

Hi ​@Ali-Akram,

Change the environment variable baseURL → baseUrl and try again with a new token. I assume the value of the baseUrl is in the following format.

https://{{cluster}}.cognitedata.com/api/v1/projects/{{project}}

For more infomation, kindly refer to the documentation here.


Forum|alt.badge.img+3
  • Author
  • Seasoned
  • March 26, 2025
It just gave me a new error after replacing it.
 

 


Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img+8

Looks like the first issue is resolved now. Untick all parameters that you can see there in the screenshot and check again.


Forum|alt.badge.img+3
  • Author
  • Seasoned
  • March 26, 2025

thank you!