#"code":"P6003" Prisma example: accelerate-hacker-news

4 messages · Page 1 of 1 (latest)

fluid osprey
#

When I upvote on official example- I upvode a post- I got this error-
Error: Failed to invalidate Accelerate cache. Response was 400 Bad Request. {"code":"P6003","message":"There is a hold on your account. Reason: planLimitReached. Please contact Prisma support if you think this is an error."}
at async addVotes (addVotes.ts:21:3)

code link
https://github.com/prisma/prisma-examples/blob/latest/accelerate/accelerate-hacker-news/app/actions/addVotes.ts

Error on addVotes.ts:21:2 - at await -

await prisma.$accelerate.invalidate({
    tags: ['posts'],

  })

my project is (for official support purpose)
console prisma io/
cm459dig001zinbfj9qemcgxv/
cm5xtjl4e00cv12ytnhrhmy22/

GitHub

🚀 Ready-to-run Prisma example projects. Contribute to prisma/prisma-examples development by creating an account on GitHub.

muted axleBOT
#

You're in no rush, so we'll let a dev step in. Enjoy your coffee, or drop into #ask-ai if you get antsy for a second opinion!

unborn summit
#

Hi @fluid osprey

The error code P6003 implies that you've reached the plan limit for your Prisma Accelerate account. This error is related to the cache invalidation rate limit, which is determined by your current plan. If you frequently need to invalidate your cache, consider upgrading to a paid plan. Different plans have different limits for cache invalidations. You can check the pricing page for more details on the available plans and their features.

Prisma

Get started for free with Prisma. Choose the right plan for your workspace based on your project requirements.

silent berry
#

Hi @unborn summit, I new to the community and not sure if you can help. While testing the caching.invalidateAll() method (without enabling any caching configuration), I encountered the same error.
I’d like to clarify that I did not exceed the 5 requests per hour limit. This was just a basic test to observe the behavior of the method under the Starter Plan. Could you please help me understand why this error is occurring?