Ignore case when parsing probe_asn field #318
Labels
bug
Something isn't working
good first issue
Good for newcomers
ooni/api
Issues related to https://github.com/ooni/api
priority/low
Currently we strip the leading
AS
from the probe_asn field, but only if it's uppercase, see: https://github.com/ooni/api/blob/9349825b05b8006a476e8dbaf37e1d9aabf4fc69/measurements/api/measurements.py#L63.In sentry we found the following stacktrace exception:
We should rather be stripping the leading
as
in a case-insensitive way or tighten the rule for matching to avoid triggering an exception.The text was updated successfully, but these errors were encountered: