apostrophecms / apostrophe-redirects

Allows admins to create redirects within an Apostrophe site
2 stars 2 forks source link

Error when creating redirect #1

Closed novascreen closed 10 years ago

novascreen commented 10 years ago

This is new, i was using a database on mongolab.com and now switched to a local install on the server and made sure it's 2.6.

When i create a redirect the browser alerts: An error occurred. Please try again. and the app throws this: [Error: key $or must not start with '$']

boutell commented 10 years ago

Yes, I can see this one. It's very odd because the remove query that's failing works if I paste it in the mongo console. I have a feeling it might be related to a mismatch between the mongodb native driver and mongodb 2.6, although that would be a bit distressing on principle... so I'm trying an npm update and we'll see.

On Sun, Apr 20, 2014 at 9:16 AM, Thomas Hermann notifications@github.comwrote:

This is new, i was using a database on mongolab.com and now switched to a local install on the server and made sure it's 2.6.

When i create a redirect the browser alerts: An error occurred. Please try again. and the app throws this: [Error: key $or must not start with '$']

— Reply to this email directly or view it on GitHubhttps://github.com/punkave/apostrophe-redirects/issues/1 .

Tom Boutell Lead Developer P'unk Avenue 215 755 1330 punkave.com window.punkave.com

boutell commented 10 years ago

I fixed this by updating appy's dependency on the mongodb module to 1.4.x. The 1.3.x module throws an error when you try to use $or in a remove operation when talking to MongoDB 2.6, for some reason. 1.4.x works fine.

npm update should sort you out.

On Sun, Apr 20, 2014 at 11:12 AM, Tom Boutell tom@punkave.com wrote:

Yes, I can see this one. It's very odd because the remove query that's failing works if I paste it in the mongo console. I have a feeling it might be related to a mismatch between the mongodb native driver and mongodb 2.6, although that would be a bit distressing on principle... so I'm trying an npm update and we'll see.

On Sun, Apr 20, 2014 at 9:16 AM, Thomas Hermann notifications@github.comwrote:

This is new, i was using a database on mongolab.com and now switched to a local install on the server and made sure it's 2.6.

When i create a redirect the browser alerts: An error occurred. Please try again. and the app throws this: [Error: key $or must not start with '$']

— Reply to this email directly or view it on GitHubhttps://github.com/punkave/apostrophe-redirects/issues/1 .

Tom Boutell Lead Developer P'unk Avenue 215 755 1330 punkave.com window.punkave.com

Tom Boutell Lead Developer P'unk Avenue 215 755 1330 punkave.com window.punkave.com

boutell commented 10 years ago

close #1

On Sun, Apr 20, 2014 at 11:29 AM, Tom Boutell tom@punkave.com wrote:

I fixed this by updating appy's dependency on the mongodb module to 1.4.x. The 1.3.x module throws an error when you try to use $or in a remove operation when talking to MongoDB 2.6, for some reason. 1.4.x works fine.

npm update should sort you out.

On Sun, Apr 20, 2014 at 11:12 AM, Tom Boutell tom@punkave.com wrote:

Yes, I can see this one. It's very odd because the remove query that's failing works if I paste it in the mongo console. I have a feeling it might be related to a mismatch between the mongodb native driver and mongodb 2.6, although that would be a bit distressing on principle... so I'm trying an npm update and we'll see.

On Sun, Apr 20, 2014 at 9:16 AM, Thomas Hermann <notifications@github.com

wrote:

This is new, i was using a database on mongolab.com and now switched to a local install on the server and made sure it's 2.6.

When i create a redirect the browser alerts: An error occurred. Please try again. and the app throws this: [Error: key $or must not start with '$']

— Reply to this email directly or view it on GitHubhttps://github.com/punkave/apostrophe-redirects/issues/1 .

Tom Boutell Lead Developer P'unk Avenue 215 755 1330 punkave.com window.punkave.com

Tom Boutell Lead Developer P'unk Avenue 215 755 1330 punkave.com window.punkave.com

Tom Boutell Lead Developer P'unk Avenue 215 755 1330 punkave.com window.punkave.com