question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working in Meteor 1.6

See original GitHub issue

Hi @aldeed, thanks for your contribution so far, you have been making good modules for the world, and I really appreciate all the efforts.

Recently, I encountered an issue, and I suspect it might related to the simple-schema, and I would like to ask for your help.

I am now developing a Meteor React app, while using simplx-schema@1.4.1 and just upgraded to Meteor 1.6 from Meteor 1.3

Everything works fine in localhost, but once deployed to AWS Ubuntu16.04.3 server, the login method (which is Meteor.loginWithPassword) cannot function properly. It keeps appearing “Internal server 500”. This happens with Meteor 1.6 only , however, using Meteor 1.3 works perfectly fine.

Server erro log shows the following: App 5683 stdout: Exception while invoking method 'login' TypeError: (0 , _utility.getLastPartOfKey) is not a function App 5683 stdout: at getPositionsForAutoValue (/var/www/xxxxxx/bundle/programs/server/npm/node_modules/simpl-schema/dist/clean/getPositionsForAutoValue.js:68:48) App 5683 stdout: at /var/www/xxxxxx/bundle/programs/server/npm/node_modules/simpl-schema/dist/clean/setAutoValues.js:49:60 App 5683 stdout: at Array.forEach (<anonymous>) App 5683 stdout: at setAutoValues (/var/www/xxxxxx/bundle/programs/server/npm/node_modules/simpl-schema/dist/clean/setAutoValues.js:36:28) App 5683 stdout: at clean (/var/www/xxxxxx/bundle/programs/server/npm/node_modules/simpl-schema/dist/clean.js:175:56) App 5683 stdout: at SimpleSchema.clean (/var/www/xxxxxx/bundle/programs/server/npm/node_modules/simpl-schema/dist/SimpleSchema.js:814:30) App 5683 stdout: at doClean (packages/aldeed:collection2-core/collection2.js:323:12) App 5683 stdout: at Mongo.Collection.doValidate (packages/aldeed:collection2-core/collection2.js:345:3) App 5683 stdout: at Mongo.Collection.(anonymous function) [as update] (packages/aldeed:collection2-core/collection2.js:187:25) App 5683 stdout: at AccountsServer.Ap._insertHashedLoginToken (packages/accounts-base/accounts_server.js:828:14)

I would like to ask is there any version of simpl-schema dedicated for Meteor 1.6? Or you would be able to provide a solution based on the error log?

Thanks in advanced!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
MohammedEssehemycommented, Mar 11, 2018

@thminggg our server is still 16.04. the problem disappeared after upgrading from Meteor 1.6.0.1 to 1.6.1 and upgrading aldeed:schema-index to version 3

1reaction
MohammedEssehemycommented, Mar 9, 2018

@thminggg I don’t know exactly what the problem source is, but after upgrading from Meteor 1.6.0.1 to 1.6.1 and upgrading aldeed:schema-index to version 3 the problem was fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] Meteor observe not working properly in 1.6
I was using observe in a publication and an observe on the client to get changes. in 1.2 no problems at all, but...
Read more >
Not working in Meteor 1.6 · Issue #220 - GitHub
Everything works fine in localhost, but once deployed to AWS Ubuntu16.04.3 server, the login method (which is Meteor.loginWithPassword) cannot ...
Read more >
Meteor observe not working properly in 1.6 - Stack Overflow
I was using observe in a publication and an observe on the client to get changes. in 1.2 no problems at all, but...
Read more >
Meteor: debug doesn't work with meteor 1.6 : WEB-28311
Is there a workaround for this problem? I just upgraded to the latest Meteor 1.5.x release and I'm getting the same error.
Read more >
Meteor 1.6. Review: Benefits, Issues, and Examples - Apiko
Updating to Meteor 1.6 is very easy. Just run meteor update and it's done. There are no problems with updating common and most...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found