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

Client does not create data directory #53

Open
nebriv opened this issue Feb 25, 2023 · 0 comments
Open

Client does not create data directory #53

nebriv opened this issue Feb 25, 2023 · 0 comments

Comments

@nebriv
Copy link

nebriv commented Feb 25, 2023

The client does not create the data/devices directory. This causes the device registration to fail to write the credential file. Manually creating the path resolves the problem

Error: ENOENT: no such file or directory, open 'Z:\Documents\Projects\whispersync-lib\data\devices\device-amzn1.account.Axxxxxxxxxxx.json'
    at Object.openSync (fs.js:458:3)
    at Object.writeFileSync (fs.js:1355:35)
    at Function.Device.writeDevice (Z:\Documents\Projects\whispersync-lib\whispersync-client\src\device.js:23:6)
    at Namespace.registerDevice [as handler] (Z:\Documents\Projects\whispersync-lib\whispersync-client\src\cli.js:30:10)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async main (Z:\Documents\Projects\whispersync-lib\whispersync-client\src\cli.js:170:3) {
  errno: -4058,
  syscall: 'open',
  code: 'ENOENT',
  path: 'Z:\\Documents\\Projects\\whispersync-lib\\data\\devices\\device-amzn1.account.Axxxxxxxxxxx.json'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant