Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Return helpful error if client code targets wrong SignalR Hub proxy generation endpoint #1181

Open
rustd opened this Issue Dec 20, 2012 · 2 comments

Comments

Projects
None yet
2 participants

rustd commented Dec 20, 2012

I had an incorrect script reference to:

<script src="/signalr/hub"></script>

Notice the missing 's' for "hub". This generated an HTTP 500 from the server. If I make the request directly in the browser, I get:

[InvalidOperationException: Protocol error: Unknown transport.]

Could we somehow provide a helpful error message here indicating the user has simply made a mistake in their script reference?

Owner

davidfowl commented Dec 20, 2012

We can't assume the http request came from a script reference.

Owner

davidfowl commented Jan 19, 2013

We need to think about more scenarios like this and ways that we can provide better error messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment