Skip to main content
Question

Pi Extractor Unauthorized Error


Forum|alt.badge.img

I have set up the Cognite Pi Extractor on a virtual machine and am running into errors in the log:  

Fatal error in request of type "CreateTimeSeries": Unauthorized. Unauthorized RequestId: , CDF Message: Unauthorized

I have checked that the client_id and client_secret being used in the config.yml have the ‘time_series: write’ capability for this project. Additionally, I have confirmed that the client_id and client_secret can be used with the python sdk to create timeseries in the project I am working with.

Any ideas where I am going wrong?

4 replies

Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img

@Zebulon Bell can you please check whether the tenant id and the scopes are correct in the idp-authentication?

  idp-authentication:
    tenant: ${COGNITE_TENANT_ID}
    client-id: ${COGNITE_CLIENT_ID}
    secret: ${COGNITE_CLIENT_SECRET}
    scopes:
      - ${COGNITE_SCOPE}

Did this work before?


Forum|alt.badge.img
  • Author
  • Committed
  • 4 replies
  • March 6, 2025

at the moment I am not using enviromental variables, and rather I’ve hardcoded these values into my config.yml file just to make sure that they are being used correctly. I do have this data structure in my config.yml file. The only thing that I am not 100% sure about is the scopes. I believe the format is :

https://az-eastus-1.cognitedata.com/.default

correct?

I am never gotten this pi extractor to work, but the credentials that I have do work with the python-sdk to create a timeseries in the project I am working with


Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img

@Zebulon Bell the scope is correct. But this looks like a configuration issue. 


Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img

@Zebulon Bell I’ll create a support ticket for this issue. The supoort team will reach out to you for more information.


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings