-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adapter error on Model.create #30
Comments
That looks like an error that occurred within waterline– hard to tell if it has to do with this adapter or not. Can you get a hold of that error waterline was trying to display (but failed to display, since its |
It may involve some logging here: Line 850 in fa295c1
|
The error occurs because the waterline adapter is trying to be clever when {application Replace lines 28 and 29 with this: // Doctor up a modified version of the stack trace called Someone could actually fix it in the repo, too... Sam Brown On Mon, Aug 29, 2016 at 8:27 AM, devin ivy [email protected] wrote:
|
I want to store some key-value, but they are not in the schema, how should I do |
I get this error when i call Model.create() after setting schema to false:
/node_modules/waterline/lib/waterline/error/WLError.js:29
this.rawStack = (this.e.stack.replace(/^Error(\r|\n)(\r|\n)_/, ''));
TypeError: Cannot read property 'replace' of undefined
at new WLError (/usr/lib/node_modules/sails/node_modules/waterline/lib/waterline/error/WLError.js:29:33)
at duckType (/usr/lib/node_modules/sails/node_modules/waterline/lib/waterline/error/index.js:66:10)
at errorify (/usr/lib/node_modules/sails/node_modules/waterline/lib/waterline/error/index.js:39:10)
at wrappedCallback (/usr/lib/node_modules/sails/node_modules/waterline/lib/waterline/utils/normalize.js:329:15)
at callback.error (/usr/lib/node_modules/sails/node_modules/waterline/node_modules/switchback/lib/normalize.js:42:31)
at _switch (/usr/lib/node_modules/sails/node_modules/waterline/node_modules/switchback/lib/factory.js:56:28)
at /home/leoyu/dynamoProject/node_modules/sails-dynamodb/index.js:850:11
at /home/leoyu/dynamoProject/node_modules/vogels/lib/table.js:119:14
at start (/home/leoyu/dynamoProject/node_modules/vogels/lib/table.js:108:12)
at fn (/home/leoyu/dynamoProject/node_modules/vogels/node_modules/async/lib/async.js:626:34)
at Immediate._onImmediate (/home/leoyu/dynamoProject/node_modules/vogels/node_modules/async/lib/async.js:542:34)
at tryOnImmediate (timers.js:543:15)
at processImmediate as _immediateCallback
The text was updated successfully, but these errors were encountered: