Skip to content

Error: Request time should not be before the last token refill time #3132

Description

@michaelAtCoalesce
  • Operating System version: Mac OS X Tahoe
  • Firebase SDK version: "firebase-admin": "^13.8.0"
  • Firebase Product: firestore
  • Node.js version: 20.19.4
  • NPM version: 10.8.2

[REQUIRED] Step 3: Describe the problem

a script that is calling recursiveDelete() is getting the following error

Stack: Error: Request time should not be before the last token refill time.
at RateLimiter.refillTokens (node_modules/@google-cloud/firestore/build/src/rate-limiter.js:117:19)
at RateLimiter.tryMakeRequest (node_modules/@google-cloud/firestore/build/src/rate-limiter.js:67:14)
at BulkWriter._sendBatch (node_modules/@google-cloud/firestore/build/src/bulk-writer.js:753:50)
at /node_modules/@google-cloud/firestore/build/src/bulk-writer.js:742:50
at runNextTicks (node:internal/process/task_queues:60:5)
at process.processImmediate (node:internal/timers:454:9)

Activity

  1. self-assigned this
    on May 7, 2026
  2. cherylEnkidu commented on May 20, 2026

    @cherylEnkidu

    Hi @michaelAtCoalesce , could you please provide more details about the scenario in which this error message appears? For example, are you encountering it consistently, or is it more of a flaky/intermittent issue?

    It would also be helpful if you could share a minimal reproducible example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions