Fix console error: error de análisis XML: no se encontraron elementos
Closed this issue · 2 comments
topcatarg commented
g3rv4 commented
Here's the error in English:
Now, what's interesting is that the server ISN'T returning a content type that's XML
According to this answer on Stack Overflow, it's a bug with Firefox. I totally agree... since nothing is telling Firefox to parse the response as an XML.
I wouldn't use OkObjectResult
... I would return an empty response that ends up returning the status code 204 (No Content). I would expect Firefox to avoid parsing it as an XML then?
topcatarg commented
This answer in SO has the rigth option.
We should return NoContent() if we need a 204 status code.