ooni / probe

OONI Probe network measurement tool for detecting internet censorship
https://ooni.org/install
BSD 3-Clause "New" or "Revised" License
749 stars 142 forks source link

Occasional 504 Gateway Time-out when using api.dev.ooni.io #2741

Closed ainghazal closed 3 weeks ago

ainghazal commented 3 weeks ago

Describe the bug

While contacting https://api.dev.ooni.io, the API will occasionally return a 504 after 60 seconds.

To Reproduce

❯ cat data.json
{"charging":true,"on_wifi":true,"platform":"linux","probe_asn":"AS0","probe_cc":"XX","run_type":"manual","software_name":"miniooni","software_version":"3.23.0-alpha","web_connectivity":{"category_codes":[]}}
❯ curl -X POST -H 'Content-type: application/json' --connect-timeout 5 -d @data.json https://api.dev.ooni.io/api/v1/check-in
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
</body>
</html>

You need to send the request several times, frequency of the error varies. Some times it fails on check-in, others in submission, etc.

Expected behavior

Not a 504.