Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rate Limiting Issue #417

Open
sutru opened this issue Jun 3, 2024 · 0 comments
Open

Rate Limiting Issue #417

sutru opened this issue Jun 3, 2024 · 0 comments
Labels

Comments

@sutru
Copy link

sutru commented Jun 3, 2024

Describe the bug

I have been using this sdk for roughly a year. About 2 weeks ago I noticed it suddenly began causing "system.operation.rate_limit.violation" events in the logs. This should be handled by
default executor
but it is still causing violation events. It is clearly stopping after a 429 but it is generating an event nonetheless.

Reproduction Steps?

const okta = require("@okta/okta-sdk-nodejs");
const orgUrl = "{dev-url}"
const token = "{api-key}"
const clients = new okta.Client({
orgUrl,
token,
});
async function test() {
// for loop because my dev tenant doesnt have enough users to generate event
for (let index = 0; index < 100; index++) {
await (await clients.userApi.listUsers()).each(usr => {
console.log(usr.id)
})
console.log(index)
}
}
test()

SDK Versions

System:
OS: Linux 5.15 Linux Mint 21.3 (Virginia)
CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
Memory: 43.25 GB / 62.54 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 22.2.0 - ~/.nvm/versions/node/v22.2.0/bin/node
npm: 10.7.0 - ~/.nvm/versions/node/v22.2.0/bin/npm
bun: 1.1.12 - ~/.bun/bin/bun
Browsers:
Brave Browser: 125.1.66.115
npmPackages:
@okta/okta-sdk-nodejs: ^7.1.0 => 7.1.0

Additional Information

No response

@sutru sutru added the bug label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant