ng2-signalr icon indicating copy to clipboard operation
ng2-signalr copied to clipboard

Error during negotiation request, works fine with local host, but to VM, no...

Open jjarrell50 opened this issue 7 years ago • 3 comments

using @angular 4.4.6. I've seen a couple things on stack overflow that see this as an issue with zone.js, but I figured you might know something about this.

I'm on MacOs with a Parallels VM for windows. I have a C# backend on windows running a self hosted service for the signalr. My goal is to work on the angular client on the mac side while connecting to the windows vm and it's running signalR service. I've bridged the network and can ping in each direction. I do have cors enabled on the windows side.

Note, if I'm running the angular client on the windows side/along with the C# app providing the server everything works great.

I get this error when I'm attempting an a connection from the mac side/angular to the windows side.

image

 public partial class StartupSignalR
    {
        ILog _logger = LogManager.GetLogger<StartupSignalR>();
    
        public void Configuration(IAppBuilder app)
        {
            _logger.Debug("starting signalR");
             app.Map("/signalr", map =>
             {
                 map.UseCors(CorsOptions.AllowAll);
                 var hubConfiguration = new HubConfiguration { };
                 hubConfiguration.EnableDetailedErrors = true;
                 map.RunSignalR(hubConfiguration);
             });
        }
    }

Appreciate any help.

jjarrell50 avatar Dec 31 '17 01:12 jjarrell50

@jjarrell50 any update on this, I am also facing the same issue on Safari(iPad)

DonBrowny avatar Aug 27 '18 11:08 DonBrowny

I'm facing too... searched everywhere. any updates?

achintha-weerasinghe avatar Sep 13 '18 06:09 achintha-weerasinghe

No. Never did get it to work. I have to work on the windows side for angular to continue to progress on project.

jjarrell50 avatar Sep 13 '18 13:09 jjarrell50