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

Cannot clone -> Admin server authentication error -> using editorX in local #218

Open
xileftenurb opened this issue Feb 9, 2021 · 0 comments

Comments

@xileftenurb
Copy link

xileftenurb commented Feb 9, 2021

Describe the bug

I followed the step on Velo website to clone using corvid-cli,
but stuck at the same place as #185
"Waiting for the Editor to connect"

Since I REALLY wanted it to work, I started probing the code around.

I used corvid-debug to get more error info and found out 2 warnings.
The first is "error reading editor versions: Invalid URL:", but it was irrelevant (see: #217 )
The second was "Admin server authentication error"

After more probing around, the source is in package corvid-local-server, file src/server/originsMiddleWare.js

the hostname is not in the allowedDomains.

my hostname is create.editorx.com and the allowed domain is editor.wix.com

After checking, this is because the local development do not work with editors.
(create.editorx.com is the hostname of editors and editor.wix.com is the hostname of the old editor)

when I add create.editorx.com In the allowedDomains array, I can download the project, but the editor do not work
(the website is visible but not modifiable).

To Reproduce
Steps to reproduce the behavior:

  1. try to clone project a project on editoxX (ex: npx corvid-cli clone . https://www.mywebsite.com)
  2. it hang at "Waiting for the Editor to connect"

Expected behavior
The best would be to be able to edit the project with editor X in local,

The minimum would be that #120 was resolved, because with my fix, it is possible to at least pull and push the code to wix.

Desktop (please complete the following information):

  • OS: window
  • Version :10
xileftenurb pushed a commit to xileftenurb/corvid that referenced this issue Feb 9, 2021
@xileftenurb xileftenurb changed the title Cannot clone -> Admin server authentication error (including potential fix.) Cannot clone -> Admin server authentication error -> using editorX in local Feb 10, 2021
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