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.
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:
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.
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.
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:
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!