storyblok / storyblok-nuxt

Storyblok Nuxt module
https://www.storyblok.com/tp/nuxt-js-multilanguage-website-tutorial
MIT License
279 stars 44 forks source link

Add routes to " Hit rate limit..." messages. #790

Closed nachoadjust closed 7 months ago

nachoadjust commented 8 months ago

Description

Considering this case:

Screenshot 2024-04-02 at 11 40 11

As a developer, it becomes very difficult to understand which of these routes/paths is the one being called when the "Hit rate limit..." occurs.

Suggested solution or improvement

It would be great if the messages would show the route that's calling them as well.

For example: Hit rate limit. Retrying in 0 seconds. (Path: /ja/blog/my-blog-post)

Additional context

No response

Validations

alvarosabu commented 7 months ago

Hello @nachoadjust it seems you are reaching the CDN Rate limit when pre-rendering those routes https://www.storyblok.com/docs/api/content-delivery/v2/getting-started/rate-limit

I will change this to a bug since it's not an enhancement to be done on the nuxt package, it's more likely to depend on how you are calling the API on the specific routes in the client. For me to investigate further, could you please provide a minimal reproduction with https://stackblitz.com/fork/github/nuxt/starter/tree/v3-stackblitz ?

Thank you

alvarosabu commented 7 months ago

Hey @nachoadjust I will temporally close this since no reproduction has been provided. Feel free to re-open if it's still happening and you can provide a minimal reproduction, thanks