Not working in Meteor 1.6
See original GitHub issueHi @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:
- Created 6 years ago
- Comments:12 (5 by maintainers)
Top GitHub Comments
@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
@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