wix-incubator / corvid

Download your Wix site, code in a local IDE, collaborate, use git, and more!
MIT License
38 stars 10 forks source link

Local Editor crashing - There was an error initializing your site. Please try again. #216

Open routesetter opened 3 years ago

routesetter commented 3 years ago

Describe the bug Error when initializing the local editor. It loads but doesn't fully initialize and crashes.

To Reproduce These are the steps to reproduce the behavior. The URL and file directory were changed for privacy reasons:

  1. Installed Node.js 14.15.4 LTS Windows x64
  2. npx create-corvid-app C:\Users\connor\Desktop\_website https://mywebsitegoeshere.wixsite.com/website-1
  3. cd C:\Users\connor\Desktop\_website
  4. npx corvid open-editor

then returns: `Corvid Technical Preview Find out more about Corvid at www.wix.com/corvid The Corvid CLI is used for working with local versions of your Wix sites. Using the CLI you can create new local projects, open a local editor, and pull project updates. √ Editor connected

[corvid] an error has occured. see [.corvid\session.log] for details. There was an error initializing your site. Please try again.`

Expected behavior For the editor to load and display my website.

Screenshots before crash crash

Desktop (please complete the following information):

Additional context .corvid\session.log {"message":"Server starting at C:\\Users\\connor\\Desktop\\_website","level":"info","timestamp":"2{"level":"error","userMessage":"There was an error initializing your site. Please try again.","name":"EditorError","timestamp":"2021-01-13T04:04:43.383Z"} tening at editor port [5000], admin port [3000]","level":"info","timestamp":"2021-01-13T04:04:02.066Z"} {"message":"Admin connected","level":"verbose","timestamp":"2021-01-13T04:04:02.099Z"} {"message":"Socket event GET_STATUS received","level":"info","timestamp":"2021-01-13T04:04:02.134Z"} {"message":"Socket event GET_STATUS handled succesfully","level":"info","timestamp":"2021-01-13T04:04:02.135Z"} {"message":"opening editor for [https://www.wix.com/editor/57a30c37-008d-43fc-9e5e-13b5d331b8c8?petri_ovr=specs.ExcludeSiteFromSsr=true&corvidSessionId=f8977e19-e4df-44b2-8298-492fcfe51c66&localServerPort=5000&x-wix-bi-context=eyJidWlsZGVyRW52IjoibG9jYWwiLCJpc0hlYWRsZXNzIjpmYWxzZX0=]","level":"info","timestamp":"2021-01-13T04:04:02.139Z"} {"message":"Accepted origin [https://editor.wix.com]","level":"verbose","timestamp":"2021-01-13T04:04:12.840Z"} {"message":"Editor connected","level":"verbose","timestamp":"2021-01-13T04:04:12.840Z"} {"message":"Socket event HANDSHAKE received","level":"info","timestamp":"2021-01-13T04:04:12.855Z"} {"message":"Socket event HANDSHAKE handled succesfully","level":"info","timestamp":"2021-01-13T04:04:12.856Z"} {"message":"Socket event IS_CLONE_MODE received","level":"info","timestamp":"2021-01-13T04:04:12.863Z"} {"message":"Socket event IS_CLONE_MODE handled succesfully","level":"info","timestamp":"2021-01-13T04:04:12.864Z"} {"message":"Socket event GET_DOCUMENT received","level":"info","timestamp":"2021-01-13T04:04:13.089Z"} {"message":"getSiteDocument started","level":"info","timestamp":"2021-01-13T04:04:13.090Z"} {"message":"getSiteDocument finished","level":"info","timestamp":"2021-01-13T04:04:13.496Z"} {"message":"Socket event GET_DOCUMENT handled succesfully","level":"info","timestamp":"2021-01-13T04:04:13.531Z"} {"message":"Socket event IS_CLONE_MODE received","level":"info","timestamp":"2021-01-13T04:04:19.674Z"} {"message":"Socket event IS_CLONE_MODE handled succesfully","level":"info","timestamp":"2021-01-13T04:04:19.675Z"} {"message":"Socket event GET_CODE received","level":"info","timestamp":"2021-01-13T04:04:19.765Z"} {"message":"getCodeFiles started","level":"info","timestamp":"2021-01-13T04:04:19.765Z"} {"message":"getCodeFiles finished","level":"info","timestamp":"2021-01-13T04:04:20.322Z"} {"message":"Socket event GET_CODE handled succesfully","level":"info","timestamp":"2021-01-13T04:04:20.332Z"} {"origin":"unhandledRejection","message":" {\"message\":\"Cannot read undoable file which has not been loaded [.schemas/Customers.json]\",\"stack\":\"Error: Cannot read undoable file which has not been loaded [.schemas/Customers.json]\\n at Object.assembleUndoableFile (https://static.parastorage.com/services/document-management/1.4641.0/bolt-ds-adapter/dist/bolt-ds-adapter.min.js:8:498364)\\n at https://static.parastorage.com/services/document-management/1.4641.0/bolt-ds-adapter/dist/bolt-ds-adapter.min.js:8:109724\\n at https://static.parastorage.com/unpkg/lodash@4.17.15/lodash.min.js:101:386\\n at https://static.parastorage.com/unpkg/lodash@4.17.15/lodash.min.js:46:78\\n at mt (https://static.parastorage.com/unpkg/lodash@4.17.15/lodash.min.js:27:267)\\n at Function.An.mapValues (https://static.parastorage.com/unpkg/lodash@4.17.15/lodash.min.js:101:358)\\n at c (https://static.parastorage.com/services/document-management/1.4641.0/bolt-ds-adapter/dist/bolt-ds-adapter.min.js:8:109668)\\n at g (https://static.parastorage.com/services/document-management/1.4641.0/bolt-ds-adapter/dist/bolt-ds-adapter.min.js:8:110238)\\n at h (https://static.parastorage.com/services/document-management/1.4641.0/bolt-ds-adapter/dist/bolt-ds-adapter.min.js:8:110541)\\n at Object.getChanges (https://static.parastorage.com/services/document-management/1.4641.0/bolt-ds-adapter/dist/bolt-ds-adapter.min.js:8:114817)\"}","level":"error","userMessage":"There was an error initializing your site. Please try again.","stack":"EditorError: {\"message\":\"Cannot read undoable file which has not been loaded [.schemas/Customers.json]\",\"stack\":\"Error: Cannot read undoable file which has not been loaded [.schemas/Customers.json]\\n at Object.assembleUndoableFile (https://static.parastorage.com/services/document-management/1.4641.0/bolt-ds-adapter/dist/bolt-ds-adapter.min.js:8:498364)\\n at https://static.parastorage.com/services/document-management/1.4641.0/bolt-ds-adapter/dist/bolt-ds-adapter.min.js:8:109724\\n at https://static.parastorage.com/unpkg/lodash@4.17.15/lodash.min.js:101:386\\n at https://static.parastorage.com/unpkg/lodash@4.17.15/lodash.min.js:46:78\\n at mt (https://static.parastorage.com/unpkg/lodash@4.17.15/lodash.min.js:27:267)\\n at Function.An.mapValues (https://static.parastorage.com/unpkg/lodash@4.17.15/lodash.min.js:101:358)\\n at c (https://static.parastorage.com/services/document-management/1.4641.0/bolt-ds-adapter/dist/bolt-ds-adapter.min.js:8:109668)\\n at g (https://static.parastorage.com/services/document-management/1.4641.0/bolt-ds-adapter/dist/bolt-ds-adapter.min.js:8:110238)\\n at h (https://static.parastorage.com/services/document-management/1.4641.0/bolt-ds-adapter/dist/bolt-ds-adapter.min.js:8:110541)\\n at Object.getChanges (https://static.parastorage.com/services/document-management/1.4641.0/bolt-ds-adapter/dist/bolt-ds-adapter.min.js:8:114817)\"}\n at [CORVID] (C:\\Users\\connor\\Desktop\\_website\\node_modules\\corvid-cli\\src\\apps\\open-editor.js:63:15)\n at WebContents.<anonymous> (C:\\Users\\connor\\Desktop\\_website\\node_modules\\corvid-cli\\src\\utils\\clientMessageActions.js:9:9)\n at WebContents.emit (events.js:310:20)\n at WebContents.EventEmitter.emit (domain.js:482:12)\n at WebContents.topLevelDomainCallback (domain.js:137:15)","timestamp":"2021-01-13T04:04:43.383Z"}