-
Notifications
You must be signed in to change notification settings - Fork 11
Randomly rejected promise #721
Copy link
Copy link
Open
Description
Using Promise.all with apiKeyMode does not seem to work properly - one of the promises is always rejected.
This used to work fine when using client.loginWithApiKey() in earlier versions of the SDK.
const client = new CogniteClient({
appId: 'Cognite SDK samples',
project,
getToken: () => Promise.resolve(apiKey),
apiKeyMode: true
});
const [eventCount, fileCount] = await Promise.all([
client.events.aggregate.count(filter),
client.files.aggregate(filter)
])Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels