Window Client does not properly convert special character "[" & "]" RRS feed

  • Question

  • User1336195024 posted

    I'm using service fabric and reverse proxy for the server side.

    While connecting through my window client to the reverse proxy, the connection keep failing with Error FABRIC_E_INVALID_ADDRESS. After investigate using fiddler, I notice my window client is sending this http request: 


    I had google around and notice it is a known issue where service fabric having problem to handler these special character "[" & "]". 

    Is there any work around for this to change the "[" to "%5B" ? 

    Monday, October 16, 2017 10:09 AM

All replies

  • User1336195024 posted

    I just figured myself that I can overwrite class the HubConnection to encode the connectionData. :)

    public class CustomHubConnectionHubConnection
          public CustomHubConnection(string url) : base(url) { }
          protected override string OnSending()
              var connectionData = base.OnSending();
              connectionData = WebUtility.UrlEncode(connectionData);
              return connectionData;
    Monday, October 16, 2017 12:01 PM