Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

dependency response code is not displayed properly

Open
#4,129 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, spring-boot

Research direction

Start by running the attached SimplifiedApp and SimplifiedService with the Java agent, then reproduce the request using the provided curl command. Trace the dependency response-code handling for the HTTP interface and identify where a 500 response becomes 0. Done means dependency responses with 4xx or 5xx codes display their corresponding status codes.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Java
Stars
327
Forks
222
Avg merge
22h 34m
Merged PRs (30d)
14

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/ApplicationInsights-Java

All issues in microsoft/ApplicationInsights-Java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.