-
Notifications
You must be signed in to change notification settings - Fork 61
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
On a successful await client.groupApi.listGroupUsers request, the headers contains no useful information. #403
Comments
Thanks for the report, we'll look into this! Internal Ref: OKTA 645744 |
@jaredperreault-okta Thanks for answering. |
@JekaPolihovic Yes, you're not supposed to 😅 I'll update this thread once progress has been made |
@jaredperreault-okta Thank you very much, I’ll wait, this change is important for us! |
@JekaPolihovic Do you mind elaborating on your use case a bit? A Have you considered using a custom RequestExecutor? https://github.com/okta/okta-sdk-nodejs#request-executor |
@jaredperreault-okta Yes, we use this For this reason, I studied this article: https://developer.okta.com/docs/reference/rl-best-practices/ And I want to get these headers from the response, how can I do this? X-Rate-Limit-Limit - the rate limit ceiling that is applicable for the current request. |
The Can you provide your RequestExecutor code snippet? |
@jaredperreault-okta
How to use |
@JekaPolihovic You can either extend the However the |
Yes, we set maxRetries to 0 because do not want to limit the number of retries. |
@jaredperreault-okta I'll test if this: |
@jaredperreault-okta We want to ensure that error 429 does not occur even once, because if it does occur, this is already a problem for us. Even if it is processed by the library when it appears, there is already a fact that it has appeared and this time it will already be registered in the Okta admin console |
@JekaPolihovic Were you able to solve this issue using the |
I'm currently testing this! |
@JekaPolihovic Just following up, were you able to solve this? |
Describe the bug
Upon successful request
await client.groupApi.listGroupUsers
and others to Okta Api using okta-sdk-nodejs, does not contain such information as X-Rate-Limit-Limit, X-Rate-Limit-Remaining, X-Rate- Limit Reset.I'm making a request. Successfully receive response: 200 OK
I want to read headers and find there information about X-Rate-Limit-Limit, X-Rate-Limit-Remaining, X-Rate-Limit-Reset. But on a successful request, headers does not contain such information. Only when an error is received, such information is in the request headers.
If I do
console.log(collectionGroupUsers);
He will show me:
How to get information about X-Rate-Limit-Limit, X-Rate-Limit-Remaining, X-Rate-Limit-Reset from a successful request?
Reproduction Steps?
I run this code:
SDK Versions
'@okta/okta-sdk-nodejs/7.0.1 node/16.9.1 darwin/21.6.0'
Additional Information
No response
The text was updated successfully, but these errors were encountered: