projectdiscovery/asnmap

asnmap unreliable

mr-pmillz opened this issue · 1 comments

The underlying API that asnmap uses is unstable, api.asnmap.sh/api/v1/asnmap?ip=X.X.X.X

the endpoint hangs and doesn't return results.
The tool itself is awesome when it works properly however it seems that the API is having issues.

image

I debugged through the code base and the code looks really good, however the API seems to be having issues and is unresponsive.

I also tried changing my IP address but am still getting the same errors.
image

[FTL] unexpected end of JSON input

essentially, the API doesn't respond resulting in an http request timeout in the call to c.makeRequest() in client.go on line 116
https://github.com/projectdiscovery/asnmap/blob/main/libs/client.go#L116

Do you experience the same results?
@ehsandeep

@mr-pmillz, some heavy automation is going on; we will soon implement a rate limit on the server and adopt the client accordingly.

image