[GH-ISSUE #1749] Cannot read property 'content-type' of undefined #558

Closed
opened 2026-03-16 15:58:41 +03:00 by kerem · 8 comments
Owner

Originally created by @woodliu on GitHub (Jul 27, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1749

Describe the bug
When i send a Post request through hoppscotch ,it return 500.

To Reproduce
Just send a Post request to my local server.
I have checked the network inside the hoppscotch docker, the connection is ok.
And the proxy of hoppscotch has beed turn off.

Expected behavior
Return the right response

Screenshots
This is the error
image
This is the request
image

Desktop (please complete the following information):

  • OS: [windows 10]
  • Browser [chrome]
  • Version [92.0.4515.107]
Originally created by @woodliu on GitHub (Jul 27, 2021). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1749 **Describe the bug** When i send a Post request through hoppscotch ,it return 500. **To Reproduce** Just send a Post request to my local server. I have checked the network inside the hoppscotch docker, the connection is ok. And the proxy of hoppscotch has beed turn off. **Expected behavior** Return the right response **Screenshots** This is the error ![image](https://user-images.githubusercontent.com/9976943/127104633-f3ed793e-2b71-4576-9b7f-673fd1e25c0c.png) This is the request ![image](https://user-images.githubusercontent.com/9976943/127104752-9592efed-c9fc-45b4-93d5-dda553a7cc3a.png) **Desktop (please complete the following information):** - OS: [windows 10] - Browser [chrome] - Version [92.0.4515.107]
kerem 2026-03-16 15:58:41 +03:00
Author
Owner

@liyasthomas commented on GitHub (Jul 27, 2021):

Can you see any errors in the browser's console log? Please share a screenshot of the console log.

<!-- gh-comment-id:887242972 --> @liyasthomas commented on GitHub (Jul 27, 2021): Can you see any errors in the browser's console log? Please share a screenshot of the console log.
Author
Owner

@woodliu commented on GitHub (Jul 27, 2021):

Can you see any errors in the browser's console log? Please share a screenshot of the console log.

Hi, it's just a request ,nothing else
image
image

<!-- gh-comment-id:887246067 --> @woodliu commented on GitHub (Jul 27, 2021): > Can you see any errors in the browser's console log? Please share a screenshot of the console log. Hi, it's just a request ,nothing else ![image](https://user-images.githubusercontent.com/9976943/127106026-f18ddc19-e971-4ccb-8e11-75da4fd10b6e.png) ![image](https://user-images.githubusercontent.com/9976943/127106217-b0b324f8-edc2-480e-8257-5ce7517b8177.png)
Author
Owner

@liyasthomas commented on GitHub (Jul 27, 2021):

Please provide the screenshot of the "console" tab. Not the network tab.

<!-- gh-comment-id:887254849 --> @liyasthomas commented on GitHub (Jul 27, 2021): Please provide the screenshot of the "console" tab. Not the network tab.
Author
Owner

@woodliu commented on GitHub (Jul 27, 2021):

Please provide the screenshot of the "console" tab. Not the network tab.

Sorry, this is the screenshot
image

<!-- gh-comment-id:887259719 --> @woodliu commented on GitHub (Jul 27, 2021): > Please provide the screenshot of the "console" tab. Not the network tab. Sorry, this is the screenshot ![image](https://user-images.githubusercontent.com/9976943/127109259-a37fe559-d44b-42fe-9070-64967c73a3ac.png)
Author
Owner

@liyasthomas commented on GitHub (Jul 27, 2021):

Turn on "Proxy mode" from settings to fix CORS issue. Let me know it if solved your issue.

<!-- gh-comment-id:887269374 --> @liyasthomas commented on GitHub (Jul 27, 2021): Turn on "**Proxy mode**" from settings to fix `CORS` issue. Let me know it if solved your issue.
Author
Owner

@woodliu commented on GitHub (Jul 27, 2021):

Turn on "Proxy mode" from settings to fix CORS issue. Let me know it if solved your issue.

Hi, there has no CORS issue, but the content-type still undefined...
image

<!-- gh-comment-id:887271854 --> @woodliu commented on GitHub (Jul 27, 2021): > Turn on "**Proxy mode**" from settings to fix `CORS` issue. Let me know it if solved your issue. Hi, there has no CORS issue, but the `content-type` still undefined... ![image](https://user-images.githubusercontent.com/9976943/127111854-8b038716-2f3c-43e6-b18a-23698381fa57.png)
Author
Owner

@HEI-cloud commented on GitHub (Jul 27, 2021):

have same error, just come from postwoman. few days ago, it has privacy problem, so turn to this hoppscotch.

<!-- gh-comment-id:887600941 --> @HEI-cloud commented on GitHub (Jul 27, 2021): have same error, just come from postwoman. few days ago, it has privacy problem, so turn to this hoppscotch.
Author
Owner

@AndrewBastin commented on GitHub (Jul 28, 2021):

@woodliu @HEI-cloud This error should only appear when the app is running on dev mode (npm run dev). But anyways, I have patched it up in commit d5cb9f1. If you still experience this problem, feel free to reopen the issue. The current solution is temporary as a revamp is taking place with the core architecture of the app.

<!-- gh-comment-id:888007830 --> @AndrewBastin commented on GitHub (Jul 28, 2021): @woodliu @HEI-cloud This error should only appear when the app is running on dev mode (`npm run dev`). But anyways, I have patched it up in commit d5cb9f1. If you still experience this problem, feel free to reopen the issue. The current solution is temporary as a revamp is taking place with the core architecture of the app.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#558
No description provided.