[arin-tech-discuss] API breakage after website change
Mark Kosters
markk at arin.net
Mon Mar 4 15:22:35 EST 2019
Hi Brian
We changed more than just the website on this release. We changed a bunch of things within our infrastructure to make it more highly available. We did not realize that our old infrastructure was more permissive allowing duplicate slashes in the middle of the URL. If you try it again with the invalid slashes, you will now get a proper 404.
Thanks for the bug report!
Thanks,
Mark
On 3/4/19, 2:55 PM, "arin-tech-discuss on behalf of Brian Rak" <arin-tech-discuss-bounces at arin.net on behalf of brak at gameservers.com> wrote:
We noticed that something broke with the API with the new website. We
used to hit URLs like this:
https://reg.arin.net//rest/report/reassignment/NET6-2001-19F0-1?apikey=xxxx
However, these have started throwing 404s now. In addition, they
redirect us to the non-existant domain http.arin.net:
$ wget --spider
https://reg.arin.net//rest/report/reassignment/NET6-2001-19F0-1?apikey=xxxx
Spider mode enabled. Check if remote file exists.
--2019-03-04 14:51:23--
https://reg.arin.net//rest/report/reassignment/NET6-2001-19F0-1?apikey=xxxx
Resolving reg.arin.net (reg.arin.net)... 2001:500:4:c000::72, 199.43.0.72
Connecting to reg.arin.net (reg.arin.net)|2001:500:4:c000::72|:443...
connected.
HTTP request sent, awaiting response... 302 Found
Location: https://http.arin.net/404.html [following]
Spider mode enabled. Check if remote file exists.
--2019-03-04 14:51:24-- https://http.arin.net/404.html
Resolving http.arin.net (http.arin.net)... failed: Name or service not
known.
wget: unable to resolve host address ‘http.arin.net’
In this case, it's the duplicate slash in the URL that's causing the
problem, so the workaround on our end is pretty straightforward, but I
was not expecting this to break with the website change.
_______________________________________________
arin-tech-discuss mailing list
arin-tech-discuss at arin.net
https://lists.arin.net/mailman/listinfo/arin-tech-discuss
More information about the arin-tech-discuss
mailing list