Azure-docs: 500 error when run the app in azure

Created on 21 Aug 2018  Â·  16Comments  Â·  Source: MicrosoftDocs/azure-docs

Hi ,
when i try to open the url and it's show a server error.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author doc-bug iot-husvc triaged

Most helpful comment

Fixed!

screenshot 270

All 16 comments

capture

@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
screenshot 208

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:

screenshot 209

screenshot 210

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)




IIS Detailed Error - 500.1002 - Internal Server Error


HTTP Error 500.1002 - Internal Server Error

The page cannot be displayed because an internal server error has occurred.

Most likely causes:

  • IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
  • IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
  • IIS was not able to process configuration for the Web site or application.
  • The authenticated user does not have permission to use this DLL.
  • The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.

Things you can try:

  • Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.
  • Check the event logs to see if any additional information was logged.
  • Verify the permissions for the DLL.
  • Install the .NET Extensibility feature if the request is mapped to a managed handler.
  • Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.

Detailed Error Information:

Module   iisnode
Notification   ExecuteRequestHandler
Handler   iisnode
Error Code   0x00000002
Requested URL   https://MartijnDemoApp:80/server.js
Physical Path   D:\home\site\wwwroot\server.js
Logon Method   Anonymous
Logon User   Anonymous


More Information:

This error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error.

View more information »

Microsoft Knowledge Base Articles:



@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!

screenshot 270

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.

screenshot 296

Works, THX

The documentation has been updated. Closing issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ianpowell2017 picture ianpowell2017  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments

Agazoth picture Agazoth  Â·  3Comments

behnam89 picture behnam89  Â·  3Comments