You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that it can trigger ENAMETOOLONG error if the key is larger than the OS can handle, raising:
ERROR [nitro] [cache] Cache write error. ENAMETOOLONG: name too long, open '/home/stf/projects/laast/laast-io-monorepo/apps/frontend/.nuxt/cache/nuxt/icon/ph_bankduotone_calculatorduotone_calendarblankduotone_calendardotsduotone_chartpiesliceduotone_chatduotone_gearduotone_lifebuoyduotone_packageduotone_sealcheckduotone_squarehalfduotone_stackduotone_storefrontduotone_timerduotone_usersduotone_wrenchduotone.json'
at async open (node:internal/fs/promises:639:25)
at async Object.writeFile (node:internal/fs/promises:1219:14)
at async Object.setItem (/home/stf/projects/laast/laast-io-monorepo/node_modules/.pnpm/unstorage@1.12.0_ioredis@5.4.1/node_modules/unstorage/dist/index.mjs:205:7)
Maybe using ohash can be a solution?
The text was updated successfully, but these errors were encountered:
stafyniaksacha
changed the title
Cache keys on windows may be too long
Cache keys may be too long
Sep 26, 2024
stafyniaksacha
changed the title
Cache keys may be too long
Cache keys may be too long and throw ENAMETOOLONG
Sep 26, 2024
Using multiple icons of the same provider will grow cache key length as described here:
icon/src/runtime/server/api.ts
Lines 72 to 76 in 7cb5ade
The issue is that it can trigger ENAMETOOLONG error if the key is larger than the OS can handle, raising:
Maybe using ohash can be a solution?
The text was updated successfully, but these errors were encountered: