question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

proxy not work for post

See original GitHub issue

POST request body is not proxied to the servers. Maybe the same problem as https://github.com/chimurai/http-proxy-middleware/issues/40

  • Web Browser: chrome 86
  • Local OS: macOS 10.13
  • Remote OS: docker
  • code-server --version: 3.7.4
  1. start a server in code-server terminal
  2. post to server without header ‘application/json’ by proxy, the server receive body
  3. post to server with header ‘application/json’ by proxy, the server can not receive body

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
nhooyrcommented, Jan 20, 2021
1reaction
nhooyrcommented, Jan 20, 2021

Confirmed this, working on a fix!

Also added a test to prevent any future breakage in this area!

Read more comments on GitHub >

github_iconTop Results From Across the Web

proxy not work for post · Issue #2377 · coder/code-server
This is only happens with POST requests. GET requests work perfectly. The same happens if i access code-server locally by port 8443. I...
Read more >
Proxy not working for sending requests from one port to another
When I go to post route for /api/users, it looks like the request doesn't even pass through. Console logging the req object returns...
Read more >
I am having trouble sending requests - Postman
Make sure you have enabled the custom proxy option within Postman. I can't send any requests through Postman. My network does not need...
Read more >
Network Proxy not working on macOS Ventura
Our network is restricted, and the proxy works fine in macOS 12, but not on macOS Ventura. Any suggestions or troubleshooting tips? Posted...
Read more >
How to Fix “There Is Something Wrong With the Proxy Server ...
1. Check if You Have a Stable Internet Connection · 2. Restore Your Proxy Server to Its Default Settings · 3. Disabling Your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found