You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After extended use with Cypress, HTTP requests start getting a cypress error appended to my JSON responses.
Additional Info (images, stack traces, etc)
Inspecting the network requests while tests run, I can see the correct data being returned from axios. Console logging the data however shows the following text appended to the JSON data which breaks all my tests:
<!DOCTYPE html>\n<html>\n<body>\n Cypress errored attempting to make an http request to this url:<br /><br />http://localhost:8081/server/fhir/Questionnaire/crf/<br /><br /><br />The error was:<br /><br />read ECONNRESET<br /><br /><br />The stack trace was:<br /><br />Error: read ECONNRESET<br /> at exports._errnoException (util.js:1026:11)<br /> at TCP.onread (net.js:564:26)<br />\n</body>\n</html>
I used postman to see if something is wrong with the local server and my requests are working fine. Also, no error logs coming out of the server.
To get Cypress running again I need to restart my computer.
I tried switching to our dev server and the tests work again, but I like using local while developing as the dev server goes down whenever new pushes are made. It's running Apache tomcat.
Hope someone has some insight on to why this error is happening, its super weird.
The text was updated successfully, but these errors were encountered:
What's happening is that your server is terminating the connection whilst the streaming response is in flight and before the final connection close packet is received.
This ends up causing the Cypress proxy to error, which then injects its own response body on top of the stream.
This is a pretty rare edge case, but I opened an issue with the root cause, so I'm closing this one in favor of that: #1036
Is this a Feature or Bug?
Bug
Current behavior:
After extended use with Cypress, HTTP requests start getting a cypress error appended to my JSON responses.
Additional Info (images, stack traces, etc)
Inspecting the network requests while tests run, I can see the correct data being returned from axios. Console logging the data however shows the following text appended to the JSON data which breaks all my tests:
<!DOCTYPE html>\n<html>\n<body>\n Cypress errored attempting to make an http request to this url:<br /><br />http://localhost:8081/server/fhir/Questionnaire/crf/<br /><br /><br />The error was:<br /><br />read ECONNRESET<br /><br /><br />The stack trace was:<br /><br />Error: read ECONNRESET<br /> at exports._errnoException (util.js:1026:11)<br /> at TCP.onread (net.js:564:26)<br />\n</body>\n</html>
I used postman to see if something is wrong with the local server and my requests are working fine. Also, no error logs coming out of the server.
To get Cypress running again I need to restart my computer.
I tried switching to our dev server and the tests work again, but I like using local while developing as the dev server goes down whenever new pushes are made. It's running Apache tomcat.
Hope someone has some insight on to why this error is happening, its super weird.
The text was updated successfully, but these errors were encountered: