Current behavior:
My page send a DELETE request with a json body to the server that correctly respond with status 204 and empty body (I verified it both on server logs and using wireshark)
cypress instead show a 500 status in the command log and if I print the response body with
cy.wait('@deleteApn').then(xhr => {
cy.exec(`echo ${JSON.stringify(xhr.response.body)} > aaa.json`)
})
I get
<!DOCTYPE html>
<html>
<body>
Cypress errored attempting to make an http request to this url:
http://172.17.102.170:3000/nc/api/apn/
The error was:
Parse Error
The stack trace was:
Error: Parse Error
at Socket.socketOnData (_http_client.js:454:20)
at emitOne (events.js:115:13)
at Socket.emit (events.js:210:7)
at addChunk (_stream_readable.js:252:12)
at readableAddChunk (_stream_readable.js:239:11)
at Socket.Readable.push (_stream_readable.js:197:10)
at TCP.onread (net.js:589:20)
</body>
</html>
- Operating System: Debian 9 virtual machine
- Cypress Version: 2.0.4
- Browser Version: electron 59
Current behavior:
My page send a
DELETErequest with a json body to the server that correctly respond with status 204 and empty body (I verified it both on server logs and usingwireshark)cypress instead show a 500 status in the command log and if I print the response body with
I get