clone and online editor problems

Without making any changes to my code, I was no longer able to clone, so I deleted all my local files and tried to re-clone the site. But I can still no longer clone. I tried cloning to a fresh directory on both Mac and Linux, and got the same errors in .corvid/session.log.

When I run

 npx corvid clone <editor URL>

I get the error:

[corvid] an error has occured. see [.corvid/session.log] for details.

Here is a fragment of the session.log. The full log is attached to this post (with .txt extension added so I could upload it).

...
{"message":"Server listening at editor port [5000], admin port [3000]","level":"info","t{"message":" {\"message\":\"Server Error\\nStatus: 500\\nResponse Text: {\\\"errorCode\\\":-10,\\\"errorDescription\\\":\\\"[business][RECOVERABLE][CloudVfsService] c.w.c.v.a.VfsFileNotFoundException - Could not locate file Could not locate file Could not locate file public/pages\\\",\\\"success\\\":false,\\\"payload\\\":null}\",\"stack\":\"Error: Server Error\\nStatus: 500\\nResponse Text: {\\\"errorCode\\\":-10,\\\"errorDescription\\\":\\\"[business][RECOVERABLE][CloudVfsService] c.w.c.v.a.VfsFileNotFoundException - Could not locate file Could not locate file Could not locate file public/pages\\\",\\\"success\\\":false,\\\"payload\\\":null}\\n    at https://static.parastorage.com/unpkg/document-services-implementation@1.360.0/dist/document-services-implementation.js:1:226324\\n ...

The errors in session.log seem to refer to not being able able to find “public/pages”. When I go to the online editor, and look at the “Site Structure” panel, I see there is a directory called “Public”. There should be a file there (a file I created locally) but when I click to expand the folder, nothing happens. Also, when I click on the “+” sign next to “Public” and select “New .js File”, “New File”, or “New Folder”, nothing happens. I wonder if this is related to the error during cloning.

You need to go to the Wix Developer’s site for information and support for this.

Yisreal, thanks for your response. The Wix Developer’s site is for making Wix apps. I’m just using Corvid to make an interactive chart as in this example:

https://www.wix.com/corvid/example/create-a-custom-chart

Aside from trying to use the local editor, I still can’t add files to the public folder using the online editor. Would you mind having a look at my site? It’s not published yet but I can send you the editor link if you can’t get to it from my account on your side.

Also, is there a place to report Corvid bugs?

Thanks again for your help with this.

Here’s more information… When I click on the public folder in the online editor, I get this error at the console:

Error: Server Error Status: 401 Response Text: {"errorCode":-15,"errorDescription":"[business][RECOVERABLE][framework security] c.w.f.s.WixSessionNotFoundException - Session not found","success":false,"payload":null}

Also, the following error occurs in the console whenever I move between pages in the online editor:

uncaught exception: Object

If you are using the local editor, then remember that it is still in testing and there is no 100% guarantees that everything will work for you.

Important:
Features relating to the Local Editor are currently in the stage of alpha release and are still being developed. Future functionality may not be backward compatible. When using these features, you assume the risks associated with the use of such an alpha version.

https://support.wix.com/en/corvid-by-wix/local-development-alpha

If you want to give feedback then go here.
https://www.wix.com/wix-lp/corvid-lp

I’m not sure about Mac, but on Linux (Debian/Ubuntu base), the solution that has solved 100% of my frustrations is either updating the global NPM package:

sudo npm i  -g npm

or updating the Corvid package–there’s a new update today so you may as well do this anyway:

sudo npm i corvid-cli --save-dev --unsafe-perm

Givemeawhiskey – that is true, I was taking a risk. Thanks for the link to submit bugs. I’ll submit a bug for this issue, and hopefully will be able to track it.

David – Thanks so much for the commands. I tried them just now and while they didn’t resolve the issue, I will keep them at hand in case other issues crop up. The problem now seems to be in the inaccessible “innards” of my website, since both the online editor and cloning are broken, and both refer to a missing public folder.

Nevertheless I am able to “fix” the issue by reverting to an earlier version of the website. Was sorry to have to do that, but I guess alpha versions are the Wild West of development!

Thanks again for your feedback. Much appreciated.

If you run into Corvid bugs, you can either report them here in the forum or to the Wix support team .

@yisrael-wix

Yes, just thought as talking about the local editor and not sure if wanted those issues on this forum yet as it is still in testing.

I do sometimes get empty files copied over or entire directories filled with misnamed files, in which case you should try pulling again:

npx corvid pull --move

Older versions are kept in the .corvid folder