Donmai

Danbooru 2 Issues Topic

Posted under General

This topic has been locked.

Trying to delete my API key and get the "rate limit" error. Talk about ironic.

After succeeded to regenerate one, my API suddenly jumped into 45/60. Don't know if this is a good sign or not.

OMGkillitwithfire said:

Sorry for asking a stupid question but, what does API do?

Elaborating a bit on what BrokenEagle98 said...

If you use a website as a user, you have a pretty HTML interface that you can click on and write text into text boxes.

Now if you want to automate some interaction with that website with a program, you have two options:

Figure out how to put your input into the forms contained in the website and retrieve the pages like a normal user, then parse the HTML output.

This has three major drawbacks:

  • You have to download all that fancy HTML junk and the server has to generate it first. That’s slow and wastes bandwidth.
  • You have to sift through the HTML to find what you need.
  • Whenever the website’s design changes, you have to adjust your program.
Use a provided API.

That avoids all those drawbacks because APIs (should) have well-documented inputs and outputs. Outputs are also in a machine-readable format without much useless junk. They also rarely change.

Examples:

I generated an API Key. Now my API Limits always shows 60.0/60 or 59.0/60, but trying to update a second Note or mark as translated within 15 seconds still fails the same as before (Note doesn't update, mark as translated gives "Too Many Requests").

API key does affect API limits, but it's a separate issue, unfortunately. This one is caused by some misconfiguration on servers (I suspect time going out of sync), not a fundamental problem in the code, so it's up to Albert to fix it.

For those that might be curious, there are a plethora of functions that shouldn't be affected by the current "Too Many Requests" issue: comments, comment_votes, favorites, forum_posts, forum_topics, moderator\post\approvals, moderator\post\disapprovals, moderator\post\posts, moderator\post\queues, post_votes, users.

So basically, you can't do any work, but you can still come here and complain about not doing any work...(ツ)

Alright, I'll volunteer to complain first then, while mulling over all this too much request junk.

Positives:

  • Getting to upload some 5240mosu stuff
  • Getting @Randeel to upload some 5240mosu stuff
  • Another positive record today (this is my 5th in the past 30 days)

Meh:

  • Seeing someone else upload the lewd I wanted to but couldn't (wasn't in the mood to, and I usually batch update these things)

Irritating:

  • This error stuff fucking me over when I haven't even done anything in the past 15 seconds

Mikaeri said:

Alright, I'll volunteer to complain first then, while mulling over all this too much request junk.

Oh no, you don't :^)

Mikaeri said:

Meh:

  • Seeing someone else upload the lewd I wanted to but couldn't (wasn't in the mood to, and I usually batch update these things)

Irritating:

  • This error stuff fucking me over when I haven't even done anything in the past 15 seconds

Ditto.

MagicalAsparagus said:

I'm sorry if this has already been discussed, but I would very much like this too many requests shit removed.

Just scroll up. All recent posts in this thread are about that problem.

MagicalAsparagus said:

I'm sorry if this has already been discussed, but I would very much like this too many requests shit removed. I can't tag an image for 2 mins now. Kinda annoying.

We can't do anything until albert came. Maybe I should take a momentary leave until this problem got fixed. The frustration of failed to upload thrice in a row is starting to drive me crazy.

Sacriven said:

We can't do anything until albert came. Maybe I should take a momentary leave until this problem got fixed. The frustration of failed to upload thrice in a row is starting to drive me crazy.

Well, it seems that the chances are higher to get an upload through if you wait for some seconds. I use that time to tag an image before uploading and the uploads goes nearly always through then.

provence. said:

Well, it seems that the chances are higher to get an upload through if you wait for some seconds. I use that time to tag an image before uploading and the uploads goes nearly always through then.

It doesn't help that 95% of the time I always have a few more tags I want to add after upload...only for the "Too Many Requests" message to come up...

(╯‵□′)╯︵┻━┻

This problem actually drove me to delete my API key and change my password because I thought someone had compromised my account and was flooding it with API requests. Good to know that it just seems like a (hopefully temporary) server glitch.