Azure-docs: negotiate problem

Created on 25 Mar 2020  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

the negotiation url has two negitiate table as in the picture.

image

the signalr.js javascript is appending another part to the url as POST https://cfszippfunc-staging.azurewebsites.net/api/negotiate/negotiate?code=/qaDVZ16Jeb5W0

please help


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri3 assigned-to-author product-question signalsvc triaged

All 5 comments

@tnlthanzeel Thanks for the question. We are investigating the issue and will update you shortly.Could you please help with the document that you are trying.

@tnlthanzeel Thanks for the question. We are investigating the issue and will update you shortly.Could you please help with the document that you are trying.

I was following this doc from

microsoft https://docs.microsoft.com/en-us/azure/azure-signalr/signalr-quickstart-azure-functions-csharp

After implementing the back end i started with the client side implementation using jquery. The signalR client script i used was signalr.min.js that i installed using libman in my ASP.NET CORE MVC project.

I used the following code to initiate the connection with my azure signalR app

window.paymentNotificationClient = new signalR.HubConnectionBuilder()
        .withUrl("<my connection url>")
        //.configureLogging(signalR.LogLevel.Information)
        .build();

then, i got the error in the console as attached to this issue.

@tnlthanzeel I have assigned this to content author for further review and update as appropriate.

@tnlthanzeel I have assigned this to content author for further review and update as appropriate.

thank you @DixitArora-MSFT

When using with Azure Functions, remove the /negotiate segment from the URL you provide to the SDK. For more details, see here: https://docs.microsoft.com/en-us/azure/azure-signalr/signalr-concept-serverless-development-config#configuring-a-client-connection

See the sample app from the quickstart for an example: https://github.com/Azure-Samples/signalr-service-quickstart-serverless-chat/blob/master/docs/demo/chat-v2/index.html#L93-L96

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Agazoth picture Agazoth  Â·  3Comments

jebeld17 picture jebeld17  Â·  3Comments

Ponant picture Ponant  Â·  3Comments

behnam89 picture behnam89  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments