简体   繁体   中英

node.js iisnode https 500 HRESULT 0x6d subStatus 1013

I'm currently working on a realtime chat with socket.io and node.js. On my development machine everything works fine. I can call my socket.io-server on port 888.

The same port is free and reachable on my production server.

I can't figure out why IIS raises an 500 error. Has anyone an idea?

Following error is thrown:

HRESULT: 0x6d
HTTP status: 500
HTTP subStatus: 1013
HTTP reason: Internal Server Error

My problem was that my IIS hosted site run on 443 https. On node.js I wanted also to use https with the same .pfx file. This doesn't seem to work.

Also there is no need to use https for node.js if the site is hosted in SSL environment. The connection runs over wss and is secured.

Instead of require('https') I came up with require('http') .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM