Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-3886

SourceTree does not send user-agent strings in HTTP requests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 1.6.22
    • General
    • None
    • SourceTree on Windows 7

    • Severity 3 - Minor

      Some firewalls blacklist HTTP/HTTPS requests when the request does not include a user-agent string. When SourceTree attempts to log into github (eg Clone/New -> browse hosted projects), the requests to api.github.com:443 fail. The full header is below.

      CONNECT api.github.com:443 HTTP/1.1
      Proxy-Authorization: Negotiate [redacted]
      Host: api.github.com
      Proxy-Connection: Keep-Alive

      Additionally, our corporate firewall gives a 200 OK response with an error page indicating that user-agent filtering is blocking this request, but sourcetree does not handle this response in a meaningful way; instead, it repeats the request (which fails) and alerts a Login error dialog box with the message:

      "Login failed for your GitHub account.

      The remote service said: 'The underlying connection was closed: An unexpected error occurred on a send.'"

              Unassigned Unassigned
              5646e1633e24 Alex Kindle
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: