-
Notifications
You must be signed in to change notification settings - Fork 60
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
getUser hangs when profile attribute has a large value #56
Comments
getUser
hangs when profile attribute has a large value
Thanks @redbmk for the report, were you able to determine if this hang is form the API or not? Can you try with Curl or Postman and let us know? |
Looks like it does come back using the raw API, and it includes the full Data URI. It does take over a second, so it's not the fastest thing in the world, but the node module doesn't return at all. If I just get the headers without receiving any data then it's closer to half a second, so a good chunk of that is probably just the download.
If I clear out the data, then the time moves to about half a second with or without the payload:
|
Thanks @redbmk , I'm going to triage this for a closer look |
This appears to be caused by Internal Ref: OKTA-410746 |
When retrieving a profile that contains very large values, the
getUser
function fails to return. To recreate this, create a custom string attribute (avatar
for example). Then set the value to something large - in my case I used a 600kb image converted to a data URI (there are online tools to make this easy, such as https://dopiaza.org/tools/datauri/index.php).If this is done with
user.update()
then the next call togetUser
for that user will return the right value. However, if the user is not already in cache and needs to be fetched from the API, thengetUser
will never return.It's not clear to me yet if this is a problem with the API not returning, or if it's a problem with this node module. When looking at the user's profile in the Okta admin panel, the string is viewable and can be edited. After clearing the value, the
getUser
function will work again for that user.The text was updated successfully, but these errors were encountered: