-
Notifications
You must be signed in to change notification settings - Fork 150
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
Http request calls failing with agent 8.0.0 #1142
Comments
Same problem here with all Feign integrations. The adopted solution was change the default library of Feign to use Apache HC5 (spring.cloud.openfeign.httpclient.hc5.enabled): https://docs.spring.io/spring-cloud-openfeign/docs/current/reference/html/#spring-cloud-feign-overriding-defaults |
@jfourment Any chance you could provide a code snippet showing how exactly you are making use of the |
Jira CommentId: 146922 Related: https://forum.newrelic.com/s/hubtopic/aAX8W0000008dhfWAA/java-agent-800-braintree-call-failure |
com.github.scribejava-core 6.9.0
spring-security-oauth2-client 5.7.5
Hope that helps. |
Hi @jasonjkeller !
|
Thanks for the additional info @jfourment @claitonmarcilio ! I'll dig into it. |
@claitonmarcilio I stuck the example code that you provided into a simple Java app, attached the 8.0.0 Java agent, and it didn't seem to repro the issue. I tried with
Is there some other factor in your repro that I'm missing? What version of Thanks! |
Hi @jasonjkeller! |
Thanks a ton for that @claitonmarcilio ! Much appreciated! I see now what the difference is in our individual tests that causes it to fail for you but pass for me. In my environment I have the agent configured to use distributed tracing, whereas your environment has the agent configured to use the legacy cross application tracing with DT disabled. If you enable distributed tracing as follows the issue shouldn't be present. I'll dig into why legacy CAT was broken by the instrumentation changes.
|
Hi, thanks @claitonmarcilio , it looks like you're onto something @jasonjkeller . |
@claitonmarcilio @jfourment I believe I've got the issue fixed. There's a custom agent jar here if you want to test it out, otherwise we're hoping to get a bug fix release out soon. Thanks again for all of your help! |
Jira CommentId: 155202 Issues should be fixed by the following PR and released in Java agent 8.0.1: #1145 |
The Java agent 8.0.1 release is out now: https://docs.newrelic.com/docs/release-notes/agent-release-notes/java-release-notes/java-agent-801/ |
Description
Functionalities relying on HTTP calls started failing with the new version of the NewRelic Java agent across multiple apps.
Reverting to 7.9.x resolve those issues.
Maybe related to latest change to HttpURLConnection instrumentation (as seen in release notes)
Expected Behavior
Instrumentation to not break Http calls :)
[Troubleshooting]
All failures in the code show one these 2 exceptions:
Your Environment
Failures have been recorded on different environments running either on temurin-jdk8 or correto-jdk8, and a range of Spring version (I can elaborate if needed).
Issues only appear with latest version of the NewRelic Agent v8.0.0
Additional context
We have seen ‘Content-Length’ header disappear from certain outgoing HTTP requests from our applications post the update as well, which has resulted in external servers rejecting our requests with HTTP 411 errors. Reverting the version to 7.x.x resolved this.
The text was updated successfully, but these errors were encountered: