ixmaps / php-backend

Php scripts for IXmaps backend
GNU Affero General Public License v3.0
2 stars 1 forks source link

geoloc_ptr - Geolocation module silently dying #6

Open colinmccann opened 6 years ago

colinmccann commented 6 years ago

Submission of CIRA route 494943. Writes the route to our DB, but returns no post data back to submitter. Instead, submitter sees a 201 (and no geolocational route data). So, instead of using the geoloc_ptr's return, the Geolocation module (or something its calling) is returning instead.

This is happening somewhere in the Geolocation module, but very hard to track down where. I believe the issue relates to hop 8, but I have no idea why - it exists in the DB, etc. But if you remove that hop, the POST returns as expected

The JSON in question: { "request_id": 494943, "ipt_timestamp": "2017-03-15 04:59:22", "ipt_client_ip": "189.216.183.171", "ipt_server_postal_code": "", "ipt_client_asn": "AS28548", "submitter": "CIRA IPT", "ipt_server_ip": "162.219.48.38", "ipt_server_city": "ndt-iupui-mlab3-yyz01.measurement-lab.org", "ipt_client_postal_code": "None", "os": "Windows", "protocol": "icmp", "hops": [ { "ip": "162.219.48.1", "num": 1, "rtts": [ "5.428", "12.161", "38.102", "11.682" ] }, { "ip": "184.105.64.45", "num": 2, "rtts": [ "18.525", "37.168", "83.803", "26.891" ] }, { "ip": "184.105.213.69", "num": 3, "rtts": [ "30.364", "41.473", "91.205", "22.332" ] }, { "ip": "198.32.132.187", "num": 4, "rtts": [ "65.080", "66.590", "69.971", "1.867" ] }, { "ip": "189.204.152.74", "num": 5, "rtts": [ "68.601", "86.040", "168.400", "36.871" ] }, { "ip": "189.204.152.46", "num": 6, "rtts": [ "68.264", "88.755", "131.111", "23.905" ] }, { "ip": "189.204.152.149", "num": 7, "rtts": [ "87.772", "94.142", "120.385", "11.759" ] }, { "ip": "189.216.3.1", "num": 8, "rtts": [ "87.256", "94.196", "110.002", "7.556" ] }, { "ip": null, "num": 9, "err": "timeout", "rtts": [ "-1", "-1", "-1", "-1" ] }, { "ip": null, "num": 10, "err": "timeout", "rtts": [ "-1", "-1", "-1", "-1" ] }, { "ip": null, "num": 11, "err": "timeout", "rtts": [ "-1", "-1", "-1", "-1" ] } ] }

agamba commented 6 years ago

It is indeed a strange error. Will look into it.