Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mappings fail to upload when behind a proxy #199

Closed
jrodbx opened this issue Apr 25, 2020 · 2 comments
Closed

Mappings fail to upload when behind a proxy #199

jrodbx opened this issue Apr 25, 2020 · 2 comments
Labels
feature request Request for a new feature released This feature/bug fix has been released

Comments

@jrodbx
Copy link

jrodbx commented Apr 25, 2020

Expected behavior

Bugsnag uploads succeed

Observed behavior

Uploads fail with the following message:
"Unable to tunnel through proxy. Proxy returns “HTTP/1.1 407 Proxy Authentication Required”"

Steps to reproduce

Attempt to access upload.bugsnag.com via a proxy connection

Version

4.7.4

Additional information

After upgrading from 4.0.0 to 4.7.4, we started to see CI build failures when running the uploadBugsnag${VARIANT}Mapping task.

18:29:58  Attempting upload of mapping file to Bugsnag
18:29:58  Bugsnag upload failed: java.net.ConnectException: Connection refused (Connection refused)
18:29:58  
...
18:29:59  
18:29:59  > Task :app:bugsnagReleaseInternal-releaseTask
18:29:59  https://build.bugsnag.com
18:29:59  Failed to POST request
18:29:59  java.io.IOException: Unable to tunnel through proxy. Proxy returns “HTTP/1.1 407 Proxy Authentication Required”
18:29:59  	at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2142)

While reviewing and comparing current and past build logs, we discovered this error message has been logged for awhile, but only surfaced due to this change in 4.1.0:

Note: this version of the plugin will fail the build if a mapping file is not uploaded successfully.
Previously if this occurred the failure would have been logged as an error and the build would have continued.

The root cause: some workers in our CI infrastructure can only make outbound internet connections via an internal proxy, but it appears the upload mapping task currently doesn't support proxy connections or proxy authentication.

@mattdyoung
Copy link

Hi @jrodbx

Thanks for the report and the related PR. This sounds like a worthwhile feature for the library to support so we'll take a look at reviewing, testing and incorporating this when we have the bandwidth.

@mattdyoung mattdyoung added backlog We hope to fix this feature/bug in the future feature request Request for a new feature labels Apr 30, 2020
@jrodbx
Copy link
Author

jrodbx commented Dec 12, 2020

Fixed in #298

@jrodbx jrodbx closed this as completed Dec 12, 2020
@mattdyoung mattdyoung added released This feature/bug fix has been released and removed backlog We hope to fix this feature/bug in the future labels Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request for a new feature released This feature/bug fix has been released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants