[untitled]
3 comments
Yeah, deleted it. I didn't see much about ratelimiting in their docs or some Googling. I don't request every TLD individually, although I haven't figured out a good balance between large batch size and reasonable responsiveness.
Not sure if it's the HN bump, but it's taking a really long time (about 5 seconds per TLD)
Yeah, looks like namecheap is ratelimiting me. I've put up a little banner about it and I'll see what I can do to fix it.
Uncaught TypeError: Cannot read property '0' of undefined check.js:4
Thanks for the downvote. May I have another?
Thanks for the downvote. May I have another?
What browser, and what did you do to get that error? Like, were you just searching? Did you try something crazy like leaving the field empty?
EDIT: Was able to reproduce. I'll investigate.
EDIT: Was able to reproduce. I'll investigate.
Yes, looking at the network requests I also get this error fairly consistently by the third or fourth batch:
> {"ApiResponse":{"$":{"Status":"ERROR"},"Errors":[{"Error":[{"_":"Too many requests","$":{"Number":"500000"}}]}],"Server":[""],"GMTTimeDifference":[""],"ExecutionTime":["0"]}}
Which then results in "Uncaught TypeError: Cannot read property '0' of undefined".
Cool idea, though!
> {"ApiResponse":{"$":{"Status":"ERROR"},"Errors":[{"Error":[{"_":"Too many requests","$":{"Number":"500000"}}]}],"Server":[""],"GMTTimeDifference":[""],"ExecutionTime":["0"]}}
Which then results in "Uncaught TypeError: Cannot read property '0' of undefined".
Cool idea, though!
Damnit, namecheap. They must be ratelimiting me... I didn't see anything about ratelimits in the API docs, I guess I'll go re-read them
I would assume any API like this would have rate limits of some sort. If you are making a separate request for every TLD that is likely to be worse too.
I haven't looked at your code, but by the way it is performing, I wonder if you're violating Namecheap's TOS.