No Content Receive - Error: Expected: HTTP-Version, Received: ""

Hello guys I face a problem I have complete the #QV8 challenge on HttpServer with C#. I passed the tests and when I go again to run the tests gives me an error:

grape banana mango pineapple grape pineapple orange apple[tester::#QV8] Failed to read response:
remote: [tester::#QV8] Received: "" (no content received)
remote: [tester::#QV8]            ^ error
remote: [tester::#QV8] Error: Expected: HTTP-version, Received: ""
remote: [tester::#QV8] Test failed

But when I try to check this out with Postman postman gets this message:

POST /files/raspberry_apple_apple_orange HTTP/1.1
Content-Type: text/plain
User-Agent: PostmanRuntime/7.37.3
Accept: */*
Cache-Control: no-cache
Postman-Token: eb405ee3-7a9f-4b49-8d33-576ed32c6410
Host: localhost:4221
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 56
 
apple grape raspberry apple orange mango grape pineapple
 
HTTP/1.1 201 Created

Any help?


i had the same issue but the issue was due to 2 accept statements. the compiler picks up the first one and ignores the second where the second statement was responsible for communicating between the client and the server so remove the first accept statement to execute the code properly

2 Likes

Marking as closed since it looks like we have a solution – please let us know if you still need help!

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