Skip to content
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

Error: [node-persist][readFile] ... does not look like a valid storage file! #25

Closed
JellyBrick opened this issue Jun 4, 2022 · 7 comments
Labels
bug Something isn't working question Further information is requested

Comments

@JellyBrick
Copy link

JellyBrick commented Jun 4, 2022

POST /resources/subscribe 200 - - 3.177 ms
Error: [node-persist][readFile] .node-persist/storage/b48b13e73a6ac2a86dc54425dd24d9ff does not look like a valid storage file!
    at ./libre-billboardoo-frontend/node_modules/node-persist/src/local-storage.js:314:89
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
@ShafSpecs ShafSpecs added the question Further information is requested label Jun 4, 2022
@ShafSpecs
Copy link
Member

Could you please elaborate on the issue? When does this error occur? While using the Push API? At random intervals?
Please provide more information

@JellyBrick
Copy link
Author

JellyBrick commented Jun 4, 2022

At random intervals.

Project code:
https://github.com/wakboardoo/libre-billboardoo-frontend

@JellyBrick
Copy link
Author

GET / 200 - - 35.708 ms
POST /resources/subscribe 200 - - 3.725 ms
GET /resources/manifest.json 200 - - 1.426 ms
GET /rank/hourly?_data=routes%2Frank%2Fhourly 200 - - 26.390 ms
GET / 200 - - 37.130 ms
GET /rank/hourly 200 - - 106.870 ms
GET /?_data=routes%2Findex 200 - - 7.490 ms
GET / 200 - - 35.648 ms
POST /resources/subscribe 200 - - 2.841 ms
Error: [node-persist][readFile] .node-persist/storage/b48b13e73a6ac2a86dc54425dd24d9ff does not look like a valid storage file!
    at ./libre-billboardoo-frontend/node_modules/node-persist/src/local-storage.js:314:89
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)

@ShafSpecs
Copy link
Member

At random intervals.

That's weird. Are you using the Push API in the project?

@ShafSpecs ShafSpecs added the bug Something isn't working label Jun 5, 2022
@JellyBrick
Copy link
Author

JellyBrick commented Jun 5, 2022

At random intervals.

That's weird. Are you using the Push API in the project?

No, I used npx remix-pwa@latest only

Maybe this is a problem?
https://github.com/wakboardoo/libre-billboardoo-frontend/blob/19aa2a99e7efb9cde187e64b087d67730f3e6612/app/entry.client.tsx#L46-L73

@ShafSpecs
Copy link
Member

Yes. You can disable it, that part is for Push API. Remove that section, restart the app.
You might want to delete caches and unregister the SW then re-register it.

@ShafSpecs
Copy link
Member

Closing issue as resolved

@remix-pwa remix-pwa locked as resolved and limited conversation to collaborators Jun 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants