Simone Giusso hi,
the agent tries to get appId from https://.../appId before sending data. if proxy messes up ssl tunneling, boom - u get garbled bytes instead of proper ssl handshake. hence the 'not ssl record' scream.
try forcing tls 1.2 in your jvm args
-Dhttps.protocols=TLSv1.2 -Djavax.net.debug=ssl
the debug flag will spill all ssl tea if u need details )) as well check this - some proxies freak out with http 1.1 chunks. add these to your ai agent config
<HttpProxy> <UseSystemProxy>true</UseSystemProxy> <ProxyAuthenticate>false</ProxyAuthenticate> </HttpProxy>
full config options https://docs.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-config
about that 400 bad request - sometimes proxy strips headers or mangles payload. worth looking into proxy logs for these requests. u can tweak that too by setting custom user agent
-Dapplicationinsights.agent.http.userAgent=YourApp/1.0
try bypassing proxy just for appid fetch (if network rules allow)
-Dapplicationinsights.agent.appIdEndpoint=https://dc.services.visualstudio.com/api/profiles/{0}/appId -Dno_proxy=dc.services.visualstudio.com
verify proxy ssl inspection policies. some corporate proxies do 'helpful' midstream decryption that breaks ssl flows ))
give that a try and see if the errors calm down. if not, lmk
Best regards,
Alex
and "yes" if you would follow me at Q&A - personaly thx.
P.S. If my answer help to you, please Accept my answer