-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Default Invalidation Handler does not work correctly #6884
Comments
two people reported on discord with same error on discord: https://discord.com/channels/770285988244750366/770285988244750370/1023931660774932500 |
Our team suggests doing the following. Add the file below with the content. plugins/body-parser.jsconst bodyParser = require('body-parser')
const app = require('express')()
app.use(bodyParser.json())
module. Exports = app Remember to add them in your nuxt.config.js |
Hey @jeffpdotone ,
thanks |
|
content:
|
Same problem here using node v14 LTS. Checking node HTTP Response object, the versions 12 14 16 don't have the method .status Very strange, probably have plugins or something wrapping the object. |
I added the bodyparse on the middleware without errors, but still not solve the .status problem. Info: The .status come from express https://expressjs.com/pt-br/4x/api.html#res.status |
@samberrry Solved addyng the body parser to server middleware. The invalidation cache endpoint works! |
many thanks @odranoelBR , I will try it and I will update here, hope it solves the issue. |
works for me to. Thanks @odranoelBR |
@samberrry if you're fine I will close this issue. Do you think this could be useful to add to docs? |
@skirianov I do not know how it should be handled, adding the fix snippet in docs or in package. |
@samberrry let me add our TL, let's see what they think. @WojtekTheWebDev any ideas what would be the best solution here? |
Describe the Bug
We used redis cache driver, and caching is working very well.
When I call the invalidation URL I get error (default invalidation handler):
My cache config:
I use this url to clear redis:
http://localhost:3000/cache-invalidate?key=uniqueKey&tags=*
Current behavior
No response
Expected behavior
cache should be cleared after calling this url.
Steps to reproduce
No response
What version of Vue Storefront are you using?
any
What version of Node.js are you using?
any
What browser (and version) are you using?
any
What operating system (and version) are you using?
any
Relevant log output
No response
Able to fix / change the documentation?
Code of Conduct
The text was updated successfully, but these errors were encountered: