Skip to content

Client does not create data directory #53

@nebriv

Description

@nebriv

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'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions