从现有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
的关联成功。