coursera-meteor-textcircle icon indicating copy to clipboard operation
coursera-meteor-textcircle copied to clipboard

Failed to get ops && Failed to parse: sort: "_id.v". 'sort' field must be of BSON type Object.

Open ChanJuiHuang opened this issue 8 years ago • 7 comments

Hello Teacher: I run your week2 code on debian8.6(64 bit), then I got errors Failed to get ops && Failed to parse: sort: "_id.v". 'sort' field must be of BSON type Object. I have tried to search solution on stackoverflow, github and meteor forum, but I didn't fix it. I follow the meteor-sharejs issue on github(https://github.com/mizzao/meteor-sharejs/issues/81). Then I change my db.serverStatus().storageEngine to wiredTiger, but these errors still here. And I will recreate a new app, howerver, these error are still here too. Please help me!

Thank you very much^^

PS this is my mongo command db.serverStatus().storageEngine { "name" : "wiredTiger", "supportsCommittedReads" : true, "persistent" : true }

OS : debian 8.6 (64bit) Meteor version: 1.4.2.3

ChanJuiHuang avatar Dec 05 '16 03:12 ChanJuiHuang

I was able to fix this by forcing a meteor version.

I deleted .meteor in the project then ran meteor create --release 1.3.5.1 .. The regenerated project successfully ran after I re-added the necessary modules.

I was unable to use meteor update --release 1.3.5.1 to downgrade, there were conflicts it wouldn't resolve, and attempting to force it took a ridiculous amount of time so I just killed the process and did the recreate above.

sqlrob avatar Dec 23 '16 04:12 sqlrob

Hello!

The code in this repo is tested to work in meteor 1.4.2.3

git clone [email protected]:yeeking/coursera-meteor-textcircle.git
cd coursera-meteor-textcircle/week_2_textcircle_end_module_2/
meteor npm install
meteor

cheers

Matthew

yeeking avatar Jan 18 '17 13:01 yeeking

I am still getting " failed to get ops for WaDoq46hdoYNuAhzE: MongoError: Failed to parse: sort: "_id.v". 'sort' field must be of BSON type Object."

mroswell avatar Apr 26 '17 07:04 mroswell

For me version 1.5 & 1.4.2.3 have the same error, but the version 1.3.5.1 is working.

jishnair avatar Jun 12 '17 18:06 jishnair

Try

meteor reset

then run your project again

thuy-le-ep avatar Jan 19 '18 03:01 thuy-le-ep

Can confirm exactly the same issue using meteor 1.4.2.3 The solution is:

  • remove <your_project_dir>/.meteor directory
  • install meteor 1.3.5.1 with meteor create --release 1.3.5.1 . (ending dot is meaningful)

zhukovpe avatar Nov 25 '18 08:11 zhukovpe

Ok guys, it took me some effort but here is what worked for me:

  • git clone [email protected]:yeeking/coursera-meteor-textcircle.git
  • cd coursera-meteor-textcircle/week_1_textcircle_end_module_1
  • rm -rf .meteor
  • meteor create --release 1.3.5.1 .
  • meteor add mizzao:sharejs-codemirror twbs:bootstrap session spacebars stylus
  • meteor

Just a suggestion: it might be useful to use docker to avoid this kind of dependency hell :wink:

Note: Some other packages used later on in the course might not work properly due to the usage of meteor 1.3.5.1. For instance, the newest version of babrahams:editable-text package didn't work for me due to some nodejs issues. A workaround was to install an older release of the package, e.g. meteor add babrahams:editable-text@=0.8.30

streof avatar Mar 05 '19 09:03 streof