electron-userland / electron-userland/electron-json-storage

Error: EPERM: operation not permitted, open

Open
#116 15 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.4k
Forks
74
PR merge metrics
No merged PRs in 30d

Description

I'm getting the above error on Windows while using `electron-json-storage:4.1.2`

I'm building an import procedure which does a large number of requests inside of a single `Promise.all`, and `storage.get` is being used inside of electron's `session.webRequest.onBeforeSendHeaders` (as an authentication mechanism)

![](https://genj.io/i/0598611bedc4.png)

I think this has to do with the concurrency in the event loop. There's a lot of calls on `storage.get` that stack up before getting resolved.

Only solution I can think of is that I implement a lazy cache somewhere, which I will probably end up doing. But I was wondering if this is a known limitation/issue of `electron-json-storage`.

Thanks,
Waddles

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.