Skip to main content
Seasoned ⭐️⭐️⭐️
Feb 18, 2025 12:14 PM UTC

API Limit Using cognite token

I was fetching data using token.
I am encountering a CogniteProjectAccessError while fetching data:

"You don't have access to the requested CDF project='**' | Code: 401 | X-Request-ID: 6530e2ad-ff30-9d91-af29-218a4c3c0e62 | Cluster: **"

5 replies

Mithila Jayalath
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Feb 18, 2025 12:33 PM UTC

​@Sumedh Vaidya the token might have expired while fetching data. Can you please elaborate more on your usecase? 

Seasoned ⭐️⭐️⭐️
Feb 19, 2025 12:26 PM UTC

tried with new token also , still facing same error

 

Mithila Jayalath
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Feb 19, 2025 12:29 PM UTC

​@Sumedh Vaidya Are you using the SDK or the API? Can you please provide more information about how you are authenticating, etc? 

Seasoned ⭐️⭐️⭐️
Feb 19, 2025 1:26 PM UTC

using SDK .
created .env file and in it token

Mithila Jayalath
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Feb 19, 2025 1:28 PM UTC

Will you be able to share the auth code to further investigate? Please remove all the sensitive information like secrets.