Azure-Samples / cognitive-services-spatial-analysis

This repository hosts sample projects and code snippets for the Cognitive Services Spatial Analysis product
https://aka.ms/SpatialAnalysisDocs
MIT License
15 stars 23 forks source link

Following Readme results in error #3

Open geekinutah opened 3 years ago

geekinutah commented 3 years ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Follow steps outlined at : https://docs.microsoft.com/en-us/azure/cognitive-services/computer-vision/spatial-analysis-web-app. When you reach step 8, of the README here: https://github.com/Azure-Samples/cognitive-services-spatial-analysis/blob/main/README.md#docker-image, you will get the following log error message:

/usr/bin/node ./server.js Cannot read property 'createFromIotHubConnectionString' of undefined server-event-reader.js:38 Listening on 3000. server.js:39

Any log messages given by the failure

See above

Expected/desired behavior

Looks like the module isn't being imported correctly, but why do we not get an error from the require in server-event-reader.js:4 ?

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) Ubuntu 20.04

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

geekinutah commented 3 years ago

Okay, not a node.js guy but learning some stuff. Looks like I've installed a newer version of packages. Will see if I can fix this.