we are making a request to an external service with basic auth in the url e.g. like https://fooUser:fooPwd@url
with apm agent not started this works very fine. with apm agent started we are getting an unauth from the external service and apm is logging this external request (in Metadata) the request is logged as https://url
Also managed to pass the credentatials via headers, is this the expected behaviour or an bug?
@Klauck That definitely sounds like a bug. The APM agent shouldn't be changing the behaviour of your code. My guess is that is comes down to the particular way your code is using the HTTP library you are using. Are you able to provide some details?
A snippet of code or a small reproduction case that shows how the HTTP request is being made.
The version of node and of any relevant node packages being used.
Thanks Mick,
I created a quick test and the problem occurs there as well
If commenting 2. line of server.js, authentication is made successfully
Cheers
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.