opusfluxus icon indicating copy to clipboard operation
opusfluxus copied to clipboard

Login fails

Open jrk opened this issue 1 year ago • 1 comments

As of September 2022, this seems to fail on both Node 14 & 16. The initial login attempt always fails:

$ wf
No /Users/foo/.wfconfig.json detected... starting authentication process...
What is your workflowy login info? This will not be saved, merely used once to authenticate.
prompt: email:  (node:25095) Warning: Accessing non-existent property 'run' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:25095) Warning: Accessing non-existent property 'loadWfConfig' of module exports inside circular dependency
(node:25095) Warning: Accessing non-existent property 'writeWfConfig' of module exports inside circular dependency
(node:25095) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
[email protected]
prompt: password:
Failed to get sessionid. Check your username/password.
returning config.sessionid undefined

Is this expected? Has this implementation rotted with respect to Workflowy itself?

I haven't rummaged through the code, but some of the warnings are potentially concerning as well. Does it expect a very old Node?

jrk avatar Sep 29 '22 21:09 jrk

Yes, the login is not working for me too. However creating a .wsconfig.json file with {"sessionid":" "abcd"} makes the program work after you substitute your session id for abcd.

To get the workflowy session id, you can read the instructions here https://github.com/cjlm/send-to-workflowy which is based on this project.

harshaxx avatar Jul 04 '23 10:07 harshaxx