Giter Club home page Giter Club logo

Comments (18)

Tratcher avatar Tratcher commented on July 28, 2024

What do you actually get back?

There are some types of errors that it cannot handle, especially errors that occur after the response headers have been sent. In these cases it usually throws an exception trying to display the error page because the response is not in a state that will allow it. Listening for first-chance exceptions in the debugger will always be more reliable.

from diagnostics.

borgdylan avatar borgdylan commented on July 28, 2024

When triggering an exception in an MVC action (catchable with action filters) and error page options being all on I get an empty response. I am running on mono with the nowin server.

from diagnostics.

Tratcher avatar Tratcher commented on July 28, 2024

Can you repro the issue on .NET 4.5 or CoreCLR, using Helios or WebListener?

from diagnostics.

borgdylan avatar borgdylan commented on July 28, 2024

I do not personally have access to Windows right now. However I have heard that this issue happens only on Mono (it is why I have observed it).

from diagnostics.

Tratcher avatar Tratcher commented on July 28, 2024

What response status code and headers do you get back?

from diagnostics.

borgdylan avatar borgdylan commented on July 28, 2024

I get an HTTP 500 i.e. Internal Server Error. There is only one header "Content-Length: 0". This is with all ErrorPageOptions turned on.

from diagnostics.

Tratcher avatar Tratcher commented on July 28, 2024

Does this sample work for you?
https://github.com/aspnet/Diagnostics/blob/dev/samples/ErrorPageSample/Startup.cs

from diagnostics.

borgdylan avatar borgdylan commented on July 28, 2024

The same result as before is obtained ie. A content length of 0 with status code 500.

from diagnostics.

Tratcher avatar Tratcher commented on July 28, 2024

Ok, one more thing: Try running Kestrel on Mono.

from diagnostics.

borgdylan avatar borgdylan commented on July 28, 2024

Last time I checked it does not work on Linux(it is what I have).

from diagnostics.

Tratcher avatar Tratcher commented on July 28, 2024

Kestrel is supposed to work on Mono at the moment.

from diagnostics.

Tratcher avatar Tratcher commented on July 28, 2024

On both OSX and Linux.

from diagnostics.

borgdylan avatar borgdylan commented on July 28, 2024

Kestrel loads a Mac specific binary on all Unix style operating systems. That will blow up on linux. mac binaries are not linux binaries. Kestrel needs to let Linux load libuv from the system directories. I tried to file an issue but it fell on deaf ears.

from diagnostics.

borgdylan avatar borgdylan commented on July 28, 2024

After installing libuv..running kestrel yields:

System.NullReferenceException: Object reference not set to an instance of an object
  at Microsoft.AspNet.Server.Kestrel.Networking.Libuv.loop_size () [0x00000] in <filename unknown>:0 
  at Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle.Init (Microsoft.AspNet.Server.Kestrel.Networking.Libuv uv) [0x00000] in <filename unknown>:0 
  at Microsoft.AspNet.Server.Kestrel.KestrelThread.ThreadStart (System.Object parameter) [0x00000] in <filename unknown>:0 

So it does not work on Linux as some advertise

from diagnostics.

paulewetzel avatar paulewetzel commented on July 28, 2024

Same problem ubuntu 14.04, hope they decide to listen:

System.NullReferenceException: Object reference not set to an instance of an object
at Microsoft.AspNet.Server.Kestrel.Networking.Libuv.loop_size () [0x00000] in :0
at Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle.Init (Microsoft.AspNet.Server.Kestrel.Networking.Libuv uv) [0x00000] in :0
at Microsoft.AspNet.Server.Kestrel.KestrelThread.ThreadStart (System.Object parameter) [0x00000] in :0

from diagnostics.

paulewetzel avatar paulewetzel commented on July 28, 2024

I assume your were talking about this part:

if (Libuv.IsWindows)
{
var architecture = IntPtr.Size == 4
? "x86"
: "amd64";
libraryPath = Path.Combine(
libraryPath,
"native",
"windows",
architecture,
"libuv.dll");
}
else
{
libraryPath = Path.Combine(
libraryPath,
"native",
"darwin",
"universal",
"libuv.dylib");
}

from diagnostics.

paulewetzel avatar paulewetzel commented on July 28, 2024

I got Kestrel to load using the solution found on this page: http://carolynvanslyck.com/blog/2014/09/dotnet-vnext-impressions/

from diagnostics.

Praburaj avatar Praburaj commented on July 28, 2024

This issue was fixed in Error page on mono long back. This can be closed.

from diagnostics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.