Bind to a port, Test failed

remote: [tester::#IA4] Running tests for Stage #IA4 (Respond with 200)
remote: [tester::#IA4] $ ./your_program.sh
remote: [tester::#IA4] $ curl -v http://localhost:4221/
remote: [your_program] accepted new connection
remote: [tester::#IA4] Failed to read response:
remote: [tester::#IA4] Received: “” (no content received)
remote: [tester::#IA4] ^ error
remote: [tester::#IA4] Error: Expected: HTTP-version, Received: “”
remote: [tester::#IA4] Test failed (try setting ‘debug: true’ in your codecrafters.yml to see more details)
remote:
remote: Try our CLI to run tests faster without Git: How do I install the CLI? - CodeCrafters
remote:
remote: View our article on debugging test failures: How do I debug test failures? - CodeCrafters
remote:
To [redacted by Andy]

No matter how I modify the code and confirm that there is no problem with it, it keeps showing that this test has failed.

Hey @IYHZhu, could you share a screenshot of the code as it looks in your editor?

The current version in the repo (see below) never writes a response, so I’d like to confirm whether there are unsaved local changes or edits not yet committed.

@IYHZhu Looks like there are quite a few uncommitted changes. Could you try opening the Git tab in your IDE and committing them?

Feel free to share more screenshots if you’re still running into issues.

Thanks, I made a mistake in handling the submitted code.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.