Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

dependency response code is not displayed properly

Aperta
#4,129 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java, spring-boot

Direzione di ricerca

Inizia eseguendo la SimplifiedApp e SimplifiedService allegate con il Java agent, quindi riproduci la richiesta usando il comando curl fornito. Traccia la gestione dei codici di risposta della dipendenza per l’interfaccia HTTP e identifica dove una risposta 500 diventa 0. Il lavoro è completato quando le risposte della dipendenza con codici 4xx o 5xx mostrano i relativi codici di stato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Expected behavior

when dependency response code is 4xx or 5xx, dependency response code should show the corresponding status code 4xx or 5xx.

Actual behavior

instead, it is showing 0

To Reproduce

Submitting a PR with an example reproducing the issue in this repository would make it easier for the Application Insight maintainers to help you. Before doing this, you have to fork this repository.
I spent some time to build two bare bone applications. Please see the attachments for the source code. Before you run SimplifiedApp, you will need to put “applicationinsights-agent-3.6.2.jar” in the root folder. It is too big, I cannot add them into the zip file to send via email.

Image
SimplifiedApp (local port: 8585)
SimplifiedService(Local port: 8081)

curl --location --request POST 'http://localhost:8585/test'

calls endpoint http://localhost:8081/csn which simply returns http status code 500 without going through a custom exception handler at all.

Image

Image

simplifiedapp.zip
simplifiedservice.zip

System information

Please provide the following information:

  • SDK Version: 17
  • OS type and version: windows 11
  • Application Server type and version (if applicable): Tomcat
  • Using spring-boot? Yes, springboot 3.x
  • http interface
Logs

Turn on SDK logs and attach/paste them to the issue. If using an application server, also attach any relevant server logs.

⚠ BE SURE TO REMOVE ANY PRIVATE INFORMATION FROM THE LOGS BEFORE POSTING ⚠

Screenshots

If applicable, add screenshots to help explain your problem.

Lingua principale
Java
Stelle
327
Fork
222
Merge medio
22h 34m
PR unite (30g)
14

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/ApplicationInsights-Java

Tutte le issue di microsoft/ApplicationInsights-Java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.