I have an Azure SignalR service setup with upstream. Negotiate is working, but I am getting a 404 error when trying to use connection.invoke('events', { ... });
In the SignalR event log, I am getting (irrelevant bits omitted):
{
"properties": {
"message": "Sending message during operation {hub}=map,{event}=events,{category}=messages got unexpected response with status code 404. Detail: ",
"type":"MessagingLogs",
"collection":"Serverless"
},
"operationName": "HttpHandlerUnexpectedResponse",
"callerIpAddress": "null"
}
What might be causing the 404?
There is a Azure Function app setup with an events
function with the following bindings:
{
"disabled": false,
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": [
"post"
]
},
{
"type": "http",
"direction": "out",
"name": "res"
},
{
"type": "signalR",
"name": "$return",
"hubName": "map",
"direction": "out"
}
]
}
I believe the function app is getting setup correctly. I have the following setup as my upstream (with info replaced in the actual call:
<function_app_server>/runtime/webhooks/signalr?code=<signalr_extension_key>