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.

POST request No response

See original GitHub issue

Hi.

OS: Windows NT 10.0; Win64; x64 Node: 10.15.1 Local-web-server: 3.0.4

// lws.config.js
// -------------------------------------------
const config = require('./proxy.config');

const rewrite = config.proxyContext.map(url => {
    return {
        from: `${url}/(.*)`,
        to: `${config.target}${url}/$1`
    }
}).concat([{
    from: '/pages/(.*)',
    to: '/$1',
}]);
module.exports = {
    spa: 'index.html',
    port: 3000,
    rewrite,
    directory: 'build',
    logFormat: 'dev',
    open: true,
    verbose: false,
    corsCredentials: true
};

No problem sending GET requests,When sending a POST request:

 Middleware error
Error: read ECONNRESET
    at TLSWrap.onStreamRead

thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
DoubleRayWangcommented, Aug 2, 2019

Thank you very much for your bug fix.

2reactions
gerardcarbocommented, Jul 25, 2019

Working like a charm! Thanks for the support and for the great project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

In what cases an HTTP request is made but no response is ...
It often happens for two reasons: 1. OPTIONS request is failed. Top reasons in my practice: server checks authorisation on OPTIONS request.
Read more >
No response after making a POST request
I am calling an API of FluidSurvey. when i make a POST request ... it post the request on the fluidSurvey but i...
Read more >
There is no response body on post request? - GO REST
I am sending post request successfully and response status 201 but there is no response body. Also it doesn't exist in the API...
Read more >
Status codes in HTTP - W3C
Server has received the request but there is no information to send back, and the client should stay in the same document view....
Read more >
204 No Content - HTTP - MDN Web Docs - Mozilla
The HTTP 204 No Content success status response code indicates that a request has succeeded, but that the client doesn't need to navigate ......
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