New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cowboy_static no export function service_available #849
Comments
Maybe you should check your cowboy version:( |
Not sure what your problem is? Can you paste the error? cowboy_static does not have service_available because it doesn't need it. |
ok,maybe it is because of cowboy version. |
If you get a 200 response, then it's most likely you trying to connect to a handler that does not do Websocket. In your last comment you mention ws://localhost:8080/ which corresponds to / and most likely is the page serving your site rather than the Websocket handler. If I'm incorrect please reopen. :-) |
when I debug cowboy I can't get correct result,I use Im() to debug it ,I found that cowboy_static no export callback function service_available.
the code line is 947 in cowboy_rest,like below:
call(Req, State=#state{handler=Handler, handler_state=HandlerState},
Callback) ->
case erlang:function_exported(Handler, Callback, 2) of
true ->
try
Handler:Callback(Req, HandlerState)
catch Class:Reason ->
error_terminate(Req, State, Class, Reason, Callback)
end;
false ->
no_call
end.
How can I resolve this?
The text was updated successfully, but these errors were encountered: