Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
I also tried below: for unstructre_insight in client.events(type="Insight",chunk_size=32): Still it returned all 64 events n=10 for m in range(n): for unstructre_insight in client.events(type="Insight", limit=None, partition=”{m}+1/{n}”): (dont know how to get cursor and put m/n as partition as it is mentioned to put as a string) wrt: (paraller retrieval) https://docs.cognite.com/dev/concepts/pagination/ and https://docs.cognite.com/api/v1/#tag/Events/operation/listEvents for unstructre_insight in client.events(type="Insight",limit=10): Getting same set of 10 insights, don't know how to get next set.
Hi @Murad SæterWe need to have https://github.com/rdhande1992/accenture-cpg-demo-2 in https://github.com/cogniteAIR where all other projects are available. Request you to provide admin access too.
Hi @Murad Sæter, project repo is user specific. Let us know if auth issue is due to the same. We need to have https://github.com/rdhande1992/accenture-cpg-demo-2 in https://github.com/cogniteAIR.
Thanks @Murad Sæter for confirming. I was able to get token and authorize the URL.Is it possible to use client_id, secret_name, tenant_id given in project properties from repoconfig.yaml in handle.py? or jst like client.config.token()? Let me know if only possible way is to add all parameters used in msal.ConfidentialClientApplication in github secrets only? if yes, secret_name (which might be client_secret stored in github secret) given in project properties in repoconfig.yaml, is already having length more than 15 characters.
Hi @Murad Sæter Thank you, dynamic url is successfully set in the github secrets and was able to access in handle. Regarding token, we do not need cdf token, so we can not use client.config.token(). In our scenario, we need to use msal_token (authorization from azure), we have our app registered and service principle created, let me know if you can help us to get msal_token using client secrets.Example: (we are still not sure how to get msal_token)app = ConfidentialClientApplication( client_id="{client_id}", client_credential="{client_credential}", authority="https://login.microsoftonline.com/{tenant_id}")app.acquire_token_for_client(["{scope}"], claims_challenge=None)
Function deployment fails with below error: config.yaml: Project name itself is having more than 15 characters. Any solution for this?
Hi Arun...Issue got solved by updating .pre-commit-config.yaml by below commands:> pre-commit clean> pre-commit autoupdate
we want to import api which has different URL for different environments(prod/dev/test) and also Authorization(msal_token/bearer) is needed to access the api. Need to understand how to implement api dynamically and access it with token.
I have tried with click update. Also click version(package details) is mentioned in poetry.lock file with reference file and it’s hash value. Can u please suggest all changes in lock file as well. poetry.lock
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.