-
Notifications
You must be signed in to change notification settings - Fork 311
WebListener RC2: 503 Service Unavailable when hosted in Azure Service Fabric #749
Comments
WebListener strictly enforces the host name match. You registered it on localhost. What host name are you using to contact it? |
I tried both When running the app using WebListener and One difference that I noticed between running the app using |
I just got it working by having WebListener listen on wildcard host name: What I don't understand yet is why WebListener listening on Thanks @Tratcher for your input, as it led me to the working solution. |
ASF isn't running on the same machine, it's running in a VM or emulator. |
If you run the local DEV cluster of ASF, there's no emulator or VM involved. ASF acts like there are multiple nodes but all processes are just regular processes on your machine. |
I ran into the same problem when moving from Kestrel to WebListener because the sample code I used (which came from the Visual Studio template for a new Service Fabric ASP.Net Core app) used |
Angular2 Apps getting 503 as main.js not loading |
@vikashsingh005 check your address registrations. #749 (comment) |
I have Followed the same Pattern like this
|
I don't see any obvious problems, you'll have to ask Service Fabric for help. |
Actually, I see you registered |
yes, after changed /app/main.js to /company/app/main.js in Angular2 Apps ,Now Context Path not working like if i hit on browser https://localhost:9999/company Angular2 Page will load but after that it Redirect back to https://localhost:9999 , my goal is to run 2 Fabric Application Internal using Angular2 on same port like 9999 so that i can access 2 application on context path like https://localhost:9999/company |
Context Path? You mean HttpContext.Path? What are you doing with it? When generating redirect urls remember to include HttpContext.PathBase. |
Where i will use in service fabric ,i have asp.net core Application my requirement is based on above Discussion like how to access application on same port like 80 based on Application context path,Can you guide me the Steps or sample on fabric to achieve that |
Same here. Changing to + works fine, but localhost results in a 503. |
I'm having an issue when using WebListener RC2 together with Azure Service Fabric: I have a very simple ASP.NET Core RC2 app that works fine when hosted using WebListener as standalone app.
However, as soon as I host this app in Azure Service Fabric (repro both on local cluster as well as Azure-hosted cluster), the following happens:
The app starts up without issues (i.e.
webHost.Run()
doesn't throw any exception and blocks the thread - expected)As soon as a request is sent to the app,
503 Service Unavailable
is returned (expected would be a200
).I took http.sys logs, but all I see there is that it returns a
503
, no indication about what the reason could be.I looked at the logs produced by the WebListener, but there are also no error entries; it just shows that it started up successfully:
If I just replace
.UseWebListener()
with.UseKestrel()
it works fine on both local cluster as well as Azure-hosted cluster.Here the code that shows how I host the ASP.NET app in Azure Service Fabric:
where
UseServiceFabricEndpoint
is implemented as follows:I'm using Microsoft.AspNetCore.Server.WebListener/0.1.0-rc2-20901
BTW the reason I'm using WebListener instead of Kestrel is that I have multiple Service Fabric-hosted apps that all listen on the same port (but different paths). But for troubleshooting I made sure that only the service described above listens on the configured port.
Any idea what I could do to further troubleshoot the root cause of that
503
error?The text was updated successfully, but these errors were encountered: