hamid1882
hamid18822mo ago

extra field `ttl` that is not in the validator - cache component

I have setup the cache component in my project, followed all the steps as per the convex docs but getting this error. currently stuck at it.
No description
5 Replies
Clever Tagline
Clever Tagline2mo ago
When you say "cache component" are you referring to the Action Cache component, or the query caching available in the convex-helpers package?
hamid1882
hamid1882OP2mo ago
I am refering to Action Cache component
erquhart
erquhart2mo ago
Looks like a legit bug, args are being passed api.cache.get that aren't in the validator: https://github.com/get-convex/action-cache/blob/cf4809a36d69eed60caabf2ab462f16f0367f206/src/component/public.ts#L17 cc/ @ian
ian
ian2mo ago
I thought I fixed that in 0.2.0 - but I see I didn't push the changes. What version did you see this in @hamid1882 ? Perhaps the 0.1.7 release overrode 0.2.0 as the "latest" so I just published 0.2.1. That should fix it. Sorry about that!
hamid1882
hamid1882OP2mo ago
"@convex-dev/action-cache": "^0.1.7"
"@convex-dev/action-cache": "^0.1.7"
this is the version which I am currenty using. Sure I will try to use this version, thankyou

Did you find this page helpful?