Error: Limits exceeded. Please contact support.

610 views
Skip to first unread message

Liam Ronan

unread,
Jan 3, 2016, 11:24:12 AM1/3/16
to Firebase Google Group
Hi all,

I'm working on an app with Firebase and loving it so far. In the process, I'm setting up test scripts, one of which deletes and re-populates some registered firebase users (via .removeUser() and .createUser() calls) and saves them to my firebase at a "/users" path. 

Right now, I'm doing this for 7 test users. In the past few minutes, I've gotten this error: "Error: Limits exceeded. Please contact support." I'm not calling any other services in this script and it seems to consistently fail at this user removal/creation stage, so I'm assuming it's related to Firebase. If I wait a few minutes, I'm able to run it again.

Is there a limit on deleting/registering users that I may be hitting? From checking out my dashboard, I'm very low on the displayed limits (e.g., 3 max concurrent users and <1% DB I/O capacity). If this error is as-intended, I can probably remove the .removeUser() and createUser() calls in my testing (i.e., just recreate the existing registered users in my "/users" path), but ideally, I'd like to have end-to-end tests.

Any ideas/thoughts would be greatly appreciated! And please let me know if I can provide more info.

Here's the script I'm using to populate data: https://gist.github.com/Liampronan/87629f2d51d2f431a65b -- is it possible that L88-L90 should be done serially and not concurrently (i.e., delete/register/save one user at a time)?
Here's the function that the above script calls to delete/register a test user: https://gist.github.com/Liampronan/ded62213a679dba32eaf#file-user-js-L80-L116

Thanks and Happy New Year,
Liam

Liam Ronan

unread,
Jan 3, 2016, 11:48:58 PM1/3/16
to Firebase Google Group
Still getting this today in my testing. Here's a slightly different error code:

{ [Error: Limits exceeded. Please contact support.]
  code: 'LIMITS_EXCEEDED',
  details: 'This IP has sent too many requests in quick succession and is temporarily being rate limited.' }

Again, I'm pretty sure this is firebase since it's the only service I'm calling here, but please correct me if I'm wrong. Is this a limit of the dev plan?

Thanks again,
Liam

Kato Richardson

unread,
Jan 4, 2016, 12:20:36 PM1/4/16
to Firebase Google Group
Hi Liam,

You're sending too many auth requests too quickly. This is limited to prevent abuse and bulk/rainbow password attacks.

You'll need to throttle all your auth-related requests (createUser(), authWith*(), etc). If you're not testing the createUser() function specifically, I'd recommend setting up some test accounts and using those, rather than destroying/creating them with each test run. Note that this doesn't mean you have to save the profile data for each account, just the login creds.

☼, Kato


--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/c263c5ac-e83d-4cab-9187-b21e3de18626%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Liam Ronan

unread,
Jan 6, 2016, 9:00:10 PM1/6/16
to Firebase Google Group
Awesome, thanks so much, Kato! 

That makes sense, and I've switched over to keeping the registered accounts in my testing setup.  

Best,
Liam
Reply all
Reply to author
Forward
0 new messages