Hi ,
when i try to open the url and it's show a server error.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@jimeilong Thanks for the feedback. We are actively investigating and will get back to you soon.
@jimeilong I am in the process of completing this tutorial but having issues unrelated to your specific issue. Are you still experiencing this issue? Thanks for updating this issue with any additional steps you have taken to resolve this. Otherwise, given me 24 hours to look into this. Thank you!
I am able to reproduce this:
Server 500 Error
Step 5 completed successfully: Download the web app from GitHub, and upload it to Azure for the web app to host. To do so, run the following commands:
I have assigned the issue to the content author to evaluate and update as appropriate.
I am getting the same error. Has this been resolved?
HI, I'encountering the same error. Any fixes ?
Same error still exist. Any fixes. Mij logfile show the following
D:\home\site\wwwrootnode_modules\azure-event-hubs\dist\lib\rhea-promise\connection.js:183
async createSender(options) {
^^^^^^^^^^^^
SyntaxError: Unexpected identifier
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (D:\home\site\wwwroot\node_modules\azure-event-hubs\dist\lib\rhea-promise\index.js:16:20)
at Module._compile (module.js:570:32)
Application has thrown an uncaught exception and is terminated:
D:\home\site\wwwrootnode_modules\azure-event-hubs\dist\lib\rhea-promise\connection.js:183
async createSender(options) {
^^^^^^^^^^^^
SyntaxError: Unexpected identifier
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (D:\home\site\wwwroot\node_modules\azure-event-hubs\dist\lib\rhea-promise\index.js:16:20)
at Module._compile (module.js:570:32)
@robinsh @xinshiMSFT Any chance you can assist with fixing this tutorial, or know someone who can address this?
@jimeilong @rubinstu @MBCO Possible solution to this issue is: For running sample, you must modify node version in app settings. Change value for "WEBSITE_NODE_DEFAULT_VERSION" to "8.9.4".
Yes the sample doesn't run because by default the version of node is "6.9.1" and I had an error in library.
Can one of you test this out? Apologies for the delay on this. Regards, ~Mike
Fixed!
Please update the doc.
For running sample, you must modify node version in app settings. Change value for "WEBSITE_NODE_DEFAULT_VERSION" to "8.9.4".
@Mike-Ubezzi-MSFT I'm sorry i can't see where that option is on the
"AzureHub>MyWebApp>Application Settings" page.
Am i looking in the wrong place or do i need to add this as a new setting name?
Btw i selected a Windows WebApp
Yep that was it. I had to add the new setting and value to "AzureHub>MyWebApp>Application Settings>ApplicationSettings"
@Asvaldrz In this section of the instructions (Configure the web app to read data from your IoT hub), you add your Azure.IoT.IoTHub.ConnectionString
and Azure.IoT.IoTHub.ConsumerGroup
property values. You also have another value WEBSITE_NODE_DEFAULT_VERSION
. Change the property value from 6.9.1
to 8.9.4
.
Works, THX
The documentation has been updated. Closing issue.
Most helpful comment
Fixed!