-
Notifications
You must be signed in to change notification settings - Fork 1
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
I get a write error #4
Comments
Hi @cherimo, could you please mention the OS that you're using? Also, a full error stack trace would be helpful. |
I'm encountering an issue on Ubuntu 22.04 while using Node.js v22.7.0 and npm v10.8.2. The error message I receive is:
This error occurs during calls to the While this error doesn't seem to affect the functionality of my application, it's flooding my logs. This is the first time I've encountered this issue on a server running Express, and I'm using Here is the relevant code snippet: import pkg from 'persistent-node-cache';
const { PersistentNodeCache } = pkg;
let instance = null;
function getCacheInstance() {
if (!instance) {
instance = new PersistentNodeCache('token-cache');
console.log('New cache instance created');
} else {
console.log('Returning existing cache instance');
}
return instance;
}
export default getCacheInstance; And how it's being used: import getCacheInstance from './tokenCache.mjs';
const cacheInstance = getCacheInstance();
cacheInstance.set(...); Any insights or suggestions on how to resolve this issue would be greatly appreciated. |
Hi @bpidperygora,
|
Hey. I told you that it does not affect functionality, but this is not true. I use your cache to manage tokens. And till the server running it's ok. But after reboot all tokens were gone. temporarily switch to Redis :(. This one?:
|
Hi, i am using the same way ( storing the tokens ) and having same issue on cpanel hosting with nodejs. Did you find Any solutions? |
I use Nodejs v20.15.0
When I add the library I get the following issues:
Code:
Error:
Alternative is the following:
Code:
Error:
Am I missing something? The permissions are set correctly.
The text was updated successfully, but these errors were encountered: