okta-sdk-nodejs
okta-sdk-nodejs copied to clipboard
Rate Limiting Issue
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