Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What causes a HttpListener HTTP 503 error?

So, we have a large program which uses HttpListener for a small remote admin feature. For reasons I don't understand, some people have issues with a 503 error.

Since we're not supplying the error, there's something happening in the framework. Now, my question is, what inside the framework supplies this error? Is it that the prefixes aren't set properly or something?

We currently have our prefix set as "http://*:8080/".

Advice?

like image 820
RandomInsano Avatar asked Nov 15 '11 20:11

RandomInsano


People also ask

How do I fix error 503 in Chrome?

In most cases, Chrome Error 503 file problems are due to the Google Chrome-related file missing or being corrupted by malware or virus. The primary way to resolve these problems manually is to replace the Google Inc. file with a fresh copy.


2 Answers

I've got same error on Windows 7, when trying to set permissions for HttpListener using netsh http command. On target system run the command (valid for Windows 7):

netsh http show urlacl    

and check, if your URL "http://+:8080/" already presented in reserved urls list. Try to remove from list (using "netsh http delete urlacl". Similar topic here.

like image 58
apdevelop Avatar answered Oct 02 '22 22:10

apdevelop


I'm a bit late to the question. But I just faced the HTTP 503 status code in the following case:

If, for example, there is "http://+:8080/MyService/" and "http://+:8080/MyService/SOAP" registered using netsh http add urlacl, we receive 503 for requests targeting an ambiguous URL. Requests for "http://myservice:8080/MyService/somethingelse" worked fine, while requests for "http://myservice:8080/MyService/SOAP/" failed with status 503.

Added this for completeness. Took me a while to figure out.

like image 36
uebe Avatar answered Oct 02 '22 23:10

uebe