-
Notifications
You must be signed in to change notification settings - Fork 135
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
Consistently thrown NoHttpResponseException's in 13.0.3 #1158
Comments
Thanks for the post! The stack trace ( |
I'm not sure how long we've been seeing this, but we just noticed it as well. Occasionally a random POST call will fail with this exception. It looks like this was a known issue, and it was resolved here via retry for any idempotent request:
But for POST calls (like creating a user) this doesn't appear to be handled since the retry won't happen.
Is it possible to look back into this and consider a connection eviction policy? https://stackoverflow.com/questions/10558791/apache-httpclient-interim-error-nohttpresponseexception As an additional note we are seeing this behavior with a custom domain for Okta as well. I am unable to produce locally with loads of bogus create requests, but we see a couple of these each day in production (using Okta Java SDK 16). |
@arvindkrishnakumar-okta Would it be possible to reopen this ticket given it appears to be a known issue which was partially fixed in 2016? |
Can you try experimenting (increasing) with the connection timeout values (Ref: https://github.com/okta/okta-sdk-java?tab=readme-ov-file#environment-variables)? Are you able to do a curl to that endpoint and get a response without any unusual delay? |
@arvindkrishnakumar-okta We are currently setting the connection timeout via the Are you thinking this value is too low? Given that we only see this issue in production it's hard to experiment with different values here. I can curl the same endpoints in a non-production tenant and do not see any unusual delay. |
@literallyjustroy Though |
(Waiting on bug-fixes/next release before upgrading to latest SDK) |
Describe the bug?
We are seeing consistently thrown NoHttpResponseExceptions (and on the com.okta.sdk.resource.api.UserApi.createUser call in particular) after upgrading our Java SDK from 8.2.1 to 13.0.3. This appears to be a reoccurrence of the same underlying issue described in #24 and resolved in #23
What is expected to happen?
Okta SDK v13.0.3 issues calls to the Okta API without the caller needing to be cognizant about connection management
What is the actual behavior?
Okta SDK outbound calls intermittently, but consistently, results in a NoHttpResponseException's being thrown at com.okta.sdk.resource.client.ApiClient.invokeAPI(ApiClient.java:1116)
Reproduction Steps?
Consistently issue outbound calls to the Okta API via Java SDK v13.0.3
Additional Information?
No response
Java Version
openjdk 17.0.10
SDK Version
13.0.3
OS version
No response
The text was updated successfully, but these errors were encountered: