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

corvid login command hangs indefinitely #166

Open
fabiomolinar opened this issue Nov 20, 2019 · 5 comments
Open

corvid login command hangs indefinitely #166

fabiomolinar opened this issue Nov 20, 2019 · 5 comments

Comments

@fabiomolinar
Copy link

Describe the bug

Anytime I try to run any of the following commands:

  • npx create-corvid-app
  • npx corvid login
  • corvid login (I have corvid-cli installed as a node module globally)

The command hangs and the authentication process never really starts.

To Reproduce

Steps to reproduce the behavior:

  1. Run npx create-corvid-app <folder-name> [your-wix-site-url]

OR

  1. Run corvid login

Expected behavior

Be asked by credentials from the terminal window or a browser window to pop up asking for credentials.

Screenshots

This is where the process hangs:

image

Desktop (please complete the following information):

  • OS: Linux Mint 19 Tara
  • Node.js: v13.1.0
  • npm: 6.12.1
  • corvid: 0.2.2

Additional context

I have also tried installing the corvid-cli package instead of using npx and running the corvid login command, but that failed the same way as well.

@dor-itzhaki
Copy link
Collaborator

Hello @fabiomolinar,

Thanks for reporting!

Can you please try the following:

mkdir new-site
cd new-site
npm init --yes
npm install --save-dev corvid-cli corvid-types
LOG_LEVEL=silly npx corvid login

Does this work ?
If not, can you send us your .corvid/session.log file after executing the login command ?

@fabiomolinar
Copy link
Author

fabiomolinar commented Nov 20, 2019

Hi @dor-itzhaki,

Thanks for taking a look at this. I gave these commands a try but nothing changed. It still hangs with a message "Accessing www.wix.com".

After some minutes I gave up on it and killed the process with ctrl+c. I pasted below the contents of .corvid/session.log.

{"message":"running [login]","level":"info","timestamp":"2019-11-20T14:46:16.998Z"}

I have noticed that although I set the LOG_LEVEL to silly, the log level was still set to info. Not sure if one is related to the other though...

@dor-itzhaki
Copy link
Collaborator

Thanks.

First of all, just so you'll know and as you suspected, the login credentials should be provided through an electron browser window that pops up (not through the terminal).

A few more things we can try:

  1. Execute node ./node_modules/.bin/electron inside your npm project directory (where you installed corvid-cli). Is an electron window opening successfully ?

  2. Can you try to uninstall your global corvid-cli (npm uninstall -g corvid-cli) and try the process again. Does it have any effect ?

  3. If Add tests local server #1 works and initial file watcher implementation #2 doesn't help, can you try using corvid-cli with Node.js version 10 or 12 ?

If those don't work, we'll have to debug the code itself if you're up for it :)

@fabiomolinar
Copy link
Author

Hi again.

  1. I executed electron and an electron window opened.
  2. Uninstalled it. Nothing changed.
  3. Changed my nvm environment to a Node.js version v12.13.1. Nothing changed.

@fabiomolinar
Copy link
Author

Update.

On the system monitor I can see a bunch of electron processes were started. Still, no window actually opens.

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

2 participants