Join the discussions focusing on developing on top of Cognite Data Fusion. Click the + CREATE TOPIC button in the menu bar to start the conversation.
Recently active
Across multiple javascript projects, we use the @cognite/sdk. We observe some strange behaviour when it comes to authentication and see the Chrome network panel full of HTTP 401 calls. When debugging the issue, we see that the getToken method supplied to the CogniteClient class only gets called some times. And when it does, the code on our part successfully retrieves a valid token. This leads to some unwanted behaviour and the user sometimes needs to refresh the browser in order to correct the browser state.I suspect the fact that we make a new instance of CogniteClient everytime we use it could be the culprit. I read from the source code baseCogniteClient.ts that the getToken function is not called each time in order to “To prevent calling `getToken` method multiple times in parallel”. Not that I am really able to follow this behaviour over multiple instances of the client.Any pointers as to what might cause this problem?const getToken = async () => { // this code only hits some t
I need some help with the SDK (Python). I'm trying to list active sessions in Cognite using the following resource: client.iam.sessions.list(status="ACTIVE" However, I notice that even my client_id doesn't return in the listing (I'm logged in via browser with my user). Am I misunderstanding this feature?
Hello,What are the best practices around setting the max-workers for a sdk. If I do not set the Global Config all the default values for workers and retries would be picked correct ? Can you give any reference on how we can set GlobalConfig, I mean I did not see any way to pass the GlobalConfig to ClientConfig ?
Hi Team, I need help to write the unit test using pytest,below is the code: row_list = cognite.raw.rows.list(file.destination.database, file.Extractor_Last_Run_Table, limit=-1, columns=["key", "LastUpdatedDatetime"]).to_pandas() if not row_list.empty: val = list(row_list[row_list.index.isin([file.Extractor_key])]['LastUpdatedDatetime'])Could you please help to write the unit test for above code?Thanks
Hi, thanks for enabling the early adopter version.I’ve created a workflow and was planning to disable all my transformations to see if we can rely only on the workflow and get better results than transformation (which sometimes fails causing data latencies), but I’m missing one part: How do we trigger the workflow to run based ion new data arrival or schedule?
Hi Cognite Team,Is there any document which can show , how to fetch confidential information from private end point key vault on Microsoft azure key vault.
Hello esteemed members of the Cognite community,I come to you with a sense of urgency and a deep need for expert guidance. I've been attempting to familiarize myself with Cognite for the last six months, and despite my best efforts, I find myself at an impasse with some critical aspects. My situation is time-sensitive, and I am truly hoping for your assistance to navigate this complex but fascinating journey.My Setup:Environment: Google Colab (Free version)SDK: Cognite Python SDKAssets: Wind Farm with two sub-assets (Asset A and Asset B)My Goals:Connect to Cognite Project via Python SDK: I need to use my client ID and client secret to establish a connection from Google Colab.Create Hierarchical Assets: My aim is to create a parent asset, named "Wind Farm," and within this parent asset, include two child assets, Asset A and Asset B.Upload Time-Series Data from CSV: I have CSV files containing wind-speed and wind-power data for Asset A and Asset B. I need to upload these as time-series d