Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
rustd opened this Issue · 2 comments

2 participants

@rustd

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?

@davidfowl
Owner

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

@davidfowl
Owner

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
Something went wrong with that request. Please try again.