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

Network error when posting to http://notify.bugsnag.com #31

Closed
peterxuxin opened this issue Jan 29, 2016 · 7 comments
Closed

Network error when posting to http://notify.bugsnag.com #31

peterxuxin opened this issue Jan 29, 2016 · 7 comments

Comments

@peterxuxin
Copy link

Network error when posting to http://notify.bugsnag.com
public static void main(String[] args)
{
Client bugsnag = new Client("my-key");
LOG.info("HelloWorld start.");
workerA.start();
workerB.start();
bugsnag.notify(new RuntimeException("Non-fatal"));
int ss = 1998/0;
LOG.info("HelloWorld end." + ss);

}
@peterxuxin
Copy link
Author

proxy ??

@kattrali
Copy link
Contributor

Hi @peterxuxin, thank you for the report. What is the name and description of the network error? Any details would help with debugging this issue.

@kattrali kattrali added the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Jan 29, 2016
@peterxuxin
Copy link
Author

Hi, @kattrali
Access public network in our company needs to use the proxy with account and password.
I will try Bugsnag on public network.

Here is the exception info:

[Bugsnag] WARNING: Error notifying Bugsnag
com.bugsnag.http.NetworkException: Network error when posting to http://notify.bugsnag.com
    at com.bugsnag.http.HttpClient.post(HttpClient.java:73)
    at com.bugsnag.Notification.deliver(Notification.java:98)
    at com.bugsnag.Client.notify(Client.java:115)
    at com.bugsnag.Client.notify(Client.java:123)
    at com.bugsnag.Client.notify(Client.java:135)
    at com.huawei.bes.helloworld.HelloWorld.main(HelloWorld.java:32)
Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.<init>(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
    at com.bugsnag.http.HttpClient.post(HttpClient.java:52)
    ... 5 more

@peterxuxin
Copy link
Author

@kattrali
It is OK to use bugsnag on public network.

@kattrali kattrali removed the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Feb 1, 2016
@kattrali
Copy link
Contributor

kattrali commented Feb 1, 2016

@peterxuxin Thank you for the update! It looks like we need to add proxy support to the library. I will file a separate issue for this specifically.

@peterxuxin
Copy link
Author

ok

@kattrali
Copy link
Contributor

kattrali commented Feb 5, 2016

Just merged #33, which will add proxy settings to the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants