Closed DumbTechLion closed 4 years ago
Dupe of https://github.com/dotnet/aspnetcore/issues/10400
This is fixed in 5.0.
I believe some folks have had success with workarounds like: https://github.com/dotnet/aspnetcore/issues/10400#issuecomment-506362739
Not really a duplicate since it's not the same package version and it's not the same environment. It seems it doesn't work EVERYWHERE for this person. For us, it works on local but not on Azure.
But nevermind. I just fixed that. I found that not one but three dependencies where missing. So I added a task in my pipeline Azure DevOps, just after "npm install" : npm install request eventsource ws.
If your node version is too old on your app service, "ws" won't compile. So in my Azure App Service Configurations, I set "WEBSITE_NODE_DEFAULT_VERSION" from 6.3.1 to 10.16.3.
Reboot your app service and relaunch your pipeline.
I hope it will help people with this issue !
Closing, as it sounds like this issue was related to Azure App Service configuration. Let us know if I'm misinterpreting your response though!
No, that's absolutely not what I said. It's not normal that I need to manually install these modules on my built SSR angular. If node_modules with request, eventsource and ws are not present in server.js folder, there is that error. You shouldn't have to do this. So, that's not a misconfiguration.
Could you try using the latest preview and seeing if that resolves the issue? https://www.npmjs.com/package/@microsoft/signalr/v/5.0.0-preview.3.20215.14
@BrennanConroy looks like yes, 5.0.0-preview.3.20215.14 works without manual manipulations. When I used 3.1.3 It failed in the same way, as author's.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.
See our Issue Management Policies for more information.
Already fixed via https://github.com/dotnet/aspnetcore/pull/19832, please try out version 5.0.0-preview.3.20215.14 of @microsoft/signalr.
You can't ask a company to test a preview version in production. That's the definition of "preview". You don't. And we certainly won't upgrade to 5.0 until a good reason shows up. I don't understand why you won't fix it on Core 3.1. It's freaking LTS !
You can't ask a company to test a preview version in production
We aren't asking you to use it in production. It would be nice if you could try it out in a test environment and verify that the issue is fixed in 5.0.
I don't understand why you won't fix it on Core 3.1
We don't backport every change we make as there are risks associated with that. We have a doc talking about the requirements needed to be fulfilled in order to backport a change: https://github.com/dotnet/aspnetcore/blob/master/docs/Servicing.md#servicing-bar Because this issue has a workaround and multiple people have successfully applied the workaround it generally will not meet the requirements for servicing.
Closing as there is a workaround (and it's fixed in 5.0) and we likely wont backport.
Hello there,
We just upgraded our API from .NET Framework to .NET Core. We migrated to SignalR Core. So, we had to upgrade our SignalR client as well. No problem. Everything works on local. But when we deploy on our Azure App Service, we get this error :
I checked and we can find signalr.js files in dist/browser. We're on the last package version. Everything related found on internet didn't help even a bit.
With SignalR Framework version, everything worked just fine.
It has been one week we're working on it. But still, we don't understand why it keeps happening. What we tried :
Our angular service
Package.json