从loopback composer中现有的`redshift`表创建新模型时出错

时间:2015-10-19 10:00:05

标签: javascript node.js loopbackjs

从现有redshift表中发现模型时出现以下错误。

Oops! Something is wrong
Cannot read property 'toUpperCase' of undefined
Show/hide details
Message: Cannot read property 'toUpperCase' of undefined
Request: /workspace/api/DataSourceDefinitions/server.bl-pgsql/discoverModelDefinition
Staus: 500
TypeError: Cannot read property 'toUpperCase' of undefined
    at mysqlDataTypeToJSONType (/home/user/appname/node_modules/loopback-connector-postgresql/lib/discovery.js:349:25)
    at /home/user/appname/node_modules/loopback-connector-postgresql/lib/discovery.js:180:20
    at Array.map (native)
    at callback (/home/user/appname/node_modules/loopback-connector-postgresql/lib/discovery.js:179:17)
    at /home/user/appname/node_modules/loopback-datasource-juggler/lib/observer.js:166:22
    at doNotify (/home/user/appname/node_modules/loopback-datasource-juggler/lib/observer.js:93:49)
    at PostgreSQL.ObserverMixin._notifyBaseObservers (/home/user/appname/node_modules/loopback-datasource-juggler/lib/observer.js:116:5)
    at PostgreSQL.ObserverMixin.notifyObserversOf (/home/user/appname/node_modules/loopback-datasource-juggler/lib/observer.js:91:8)
    at cbForWork (/home/user/appname/node_modules/loopback-datasource-juggler/lib/observer.js:156:14)
    at /home/user/appname/node_modules/loopback-connector/lib/sql.js:413:7

请找到我的package.json 我正在处理新安装的loopback应用。 我与redshift的关联成功。

0 个答案:

没有答案