mozilla-sensorweb / sensorthings

Node implementation of the OGC SensorThings API
Mozilla Public License 2.0
14 stars 9 forks source link

Error when expanding to multilevel models i.e ?$expand=Datastreams/Things #200

Closed albertopq closed 7 years ago

albertopq commented 7 years ago

This feature is not implemented yet, but it should return an error. At the moment is timing out.

albertopq commented 7 years ago

Seeing this in the console:

(node:85290) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'associations' of undefined

isabelrios commented 7 years ago

Please see issue #198 it also appears there, the last two logs shown in the server logss

albertopq commented 7 years ago

Thanks @isabelrios ! That is a different one, though. That warning is being shown because of the way we are running the promises. It shouldn't affect the behavior.

isabelrios commented 7 years ago

Just to be sure :) I did not mean the warning in the title, but the same error you have seen, that is appearing in travis: node:2253) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 226): TypeError: Cannot read property 'associations' of undefined

(node:2253) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 227): TypeError: Cannot read property 'associations' of undefined