You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest release of the Cognite Python SDK adds support for Pyodide and it works great if the client is instantiated with a Token generated somewhere else. Any of the current credential providers that rely on msal are not working in Pyodide and some work might need to be done to patch msal to work without regular requests.
The text was updated successfully, but these errors were encountered:
Adding to the issue: For client credentials (OAuthClientCredentials), which doesn't use the msal package, the error is different:
JsException:
NetworkError:
Failed to execute 'send' on 'XMLHttpRequest':
Failed to load 'https://login.microsoftonline.com/0d75f6b8-c6b9-4e84-baca-503e08aa7e4a/oauth2/v2.0/token'.
Adding another similar-in-nature issue:
Calling e.g. client.iam.service_accounts.list() which for many projects have been deactivated and returning 404, will raise a pyodide.JsException instead of subclass of CogniteException like CogniteAPIError. Needs to add or patch a check for it.
The latest release of the Cognite Python SDK adds support for Pyodide and it works great if the
client
is instantiated with aToken
generated somewhere else. Any of the current credential providers that rely onmsal
are not working in Pyodide and some work might need to be done to patchmsal
to work without regularrequests
.The text was updated successfully, but these errors were encountered: