Closed baltpeter closed 1 year ago
I can confirm this. The CORS preflight request fails:
❯ curl 'https://backend.datenanfragen.de/comments' -X OPTIONS -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:114.0) Gecko/20100101 Firefox/114.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.7,de;q=0.3' -H 'Accept-Encoding: gzip, deflate, br' -H 'Access-Control-Request-Method: PUT' -H 'Access-Control-Request-Headers: content-type' -H 'Origin: https://www.datarequests.org' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: cross-site' -H 'Sec-GPC: 1' -H 'TE: trailers'
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
This is likely the same problem as #1060.
This should be fixed by https://github.com/datenanfragen/backend/pull/68.
https://github.com/datenanfragen/website/issues/1063
Seems like this error is related/the same?
https://github.com/datenanfragen/backend/pull/68 is now merged and has fixed the issue for me.
We've received two bug reports regarding submitting comments.
The error message in both cases is:
message := Uncaught TypeError: Failed to fetch