HearthStats / HearthStats.net-Uploader

Auto uploader for HearthStats.net
BSD 3-Clause "New" or "Revised" License
123 stars 54 forks source link

Error connecting to Hearthstats.net #562

Open Asoudo opened 10 years ago

Asoudo commented 10 years ago

I've been having an issue with the auto uploader for quite a bit. I have installed it fine, and it detects my game fine, however, whenever I try to make an active deck, or link one between the uploader and the website, I get the code "API Error: Error communicating with Hearthstats.net" and I am unable to load any decks I have created. If this is the wrong avenue for rectifying this problem, apologies, but this seemed to be the only help option I have found, since my search for previous solutions for other people has come up blank.

trigun0x2 commented 10 years ago

@tyrcho I've had several other reports of this issue. It seems like the site is responding fine though.

trigun0x2 commented 10 years ago

@Asoudo can you email me your userkey? jeff@hearthstats.net

Asoudo commented 10 years ago

I can do that, sure.

tyrcho commented 10 years ago

@trigun0x2 I'm not sure if it's related, but yesterday I had similar errors for about 20 min, and it was the site being down (even from the browser). It was around the time of this commit : cd8c12a10bb09041144754c20cc967a93c7b8243

@Asoudo from the log file you shared, it seems you lost internet for a while : the google analytics tracker could not be reached also (and it's the google site, not hs.net). Do you reproduce this issue today or was it temporary ?

Asoudo commented 10 years ago

Yes actually, I can replicate the problem right now, and I have a fine internet connection at the moment, both web browser and Hearthstone are running just fine.

Asoudo commented 10 years ago

Log File below, as I think I accidentally deleted that post.

10:18:12.515 [ main] INFO net.hearthstats.Main - ** 10:18:12.529 [ main] INFO net.hearthstats.Main - Starting HearthStats Companion 0.20.2 on WINDOWS 10:18:12.531 [ main] INFO net.hearthstats.Main - os.name=Windows 7 10:18:12.531 [ main] INFO net.hearthstats.Main - os.version=6.1 10:18:12.531 [ main] INFO net.hearthstats.Main - os.arch=x86 10:18:12.531 [ main] INFO net.hearthstats.Main - java.runtime.version=1.8.0_25-b18 10:18:12.531 [ main] INFO net.hearthstats.Main - java.class.path=C:\Users\Shane Bong\Desktop\HearthStats.exe;anything;uploader-0.20.2.jar;updater-0.20.2.jar;scala-library-2.11.1.jar;scala-swing_2.11-1.0.1.jar;rxjava-scala-0.18.3.jar;rxjava-core-0.18.3.jar;grizzled-slf4j_2.11-1.0.2.jar;commons-lang3-3.3.1.jar;commons-io-2.4.jar;jna-platform-4.0.0.jar;jna-4.0.0.jar;ini4j-0.5.2.jar;jai_imageio-1.1.jar;javaocr-core-1.0.jar;javaocr-plugin-awt-1.0.jar;javaocr-plugin-cluster-1.0.jar;commons-math-2.1.jar;javaocr-plugin-fir-1.0.jar;javaocr-plugin-moment-1.0.jar;javaocr-plugin-morphology-1.0.jar;json-simple-1.1.1.jar;miglayout-swing-4.2.jar;miglayout-core-4.2.jar;JGoogleAnalyticsTracker-1.2.0.jar;logback-classic-1.1.1.jar;logback-core-1.1.1.jar;slf4j-api-1.7.6.jar;gson-2.2.2.jar 10:18:12.532 [ main] INFO net.hearthstats.Main - java.library.path=C:\Program Files (x86)\Java\jre1.8.0_25\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio\OEM\AudioCore\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Java\jre1.8.0_25\bin;. 10:18:12.532 [ main] INFO net.hearthstats.Main - user.language=en 10:18:12.532 [ main] INFO net.hearthstats.Main - ** 10:18:12.852 [tQueue-0] WARN net.hearthstats.app - Error communicating with HearthStats.net (GET decks/show) java.net.SocketException: Invalid argument: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) ~[na:1.8.0_25] at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:1.8.0_25] at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.8.0_25] at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.8.0_25] at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_25] at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_25] at sun.net.NetworkClient.doConnect(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.New(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.New(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) ~[na:1.8.0_25] at java.net.URL.openStream(Unknown Source) ~[na:1.8.0_25] at scala.io.Source$.fromURL(Source.scala:141) ~[HearthStats.exe:na] at scala.io.Source$.fromURL(Source.scala:136) ~[HearthStats.exe:na] at net.hearthstats.API$._get(API.scala:111) [HearthStats.exe:na] at net.hearthstats.API$.getDecks(API.scala:187) [HearthStats.exe:na] at net.hearthstats.DeckUtils$.updateDecks(DeckUtils.scala:17) [HearthStats.exe:na] at net.hearthstats.ui.DecksTab.updateDecks(DecksTab.scala:73) [HearthStats.exe:na] at net.hearthstats.ui.DecksTab$$anonfun$1.apply$mcV$sp(DecksTab.scala:70) [HearthStats.exe:na] at scala.swing.Swing$$anon$10.run(Swing.scala:32) [HearthStats.exe:na] at java.awt.event.InvocationEvent.dispatch(Unknown Source) [na:1.8.0_25] at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [na:1.8.0_25] at java.awt.EventQueue.access$400(Unknown Source) [na:1.8.0_25] at java.awt.EventQueue$3.run(Unknown Source) [na:1.8.0_25] at java.awt.EventQueue$3.run(Unknown Source) [na:1.8.0_25] at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_25] at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) [na:1.8.0_25] at java.awt.EventQueue.dispatchEvent(Unknown Source) [na:1.8.0_25] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [na:1.8.0_25] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [na:1.8.0_25] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [na:1.8.0_25] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.8.0_25] at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.8.0_25] at java.awt.EventDispatchThread.run(Unknown Source) [na:1.8.0_25] 10:18:14.617 [ main] INFO net.hearthstats.app - HearthStats Companion v0.20.2 10:18:14.618 [ main] INFO net.hearthstats.app - 1 - Set your deck slots on the "Decks" tab 10:18:14.619 [ main] INFO net.hearthstats.app - 2 - Run Hearthstone in WINDOWED mode 10:18:14.619 [ main] INFO net.hearthstats.app - 3 - Look for event notifications in this log and bottom right of screen 10:18:14.620 [ main] INFO net.hearthstats.app - 4 - Submit feedback here (please copy and paste your log file in C:\Users\Shane Bong\Desktop\log.txt) 10:18:14.622 [ main] INFO net.hearthstats.app - Checking for updates ... 10:18:14.675 [ndThread] ERROR ogleAnalyticsTracker - Error making tracking request java.net.SocketException: Invalid argument: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) ~[na:1.8.0_25] at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:1.8.0_25] at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.8.0_25] at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.8.0_25] at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_25] at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_25] at sun.net.NetworkClient.doConnect(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.New(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.New(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) ~[na:1.8.0_25] at com.dmurph.tracking.JGoogleAnalyticsTracker.dispatchRequest(JGoogleAnalyticsTracker.java:463) [HearthStats.exe:na] at com.dmurph.tracking.JGoogleAnalyticsTracker.access$100(JGoogleAnalyticsTracker.java:76) [HearthStats.exe:na] at com.dmurph.tracking.JGoogleAnalyticsTracker$2.run(JGoogleAnalyticsTracker.java:512) [HearthStats.exe:na] 10:18:15.248 [ main] WARN net.hearthstats.app - Unable to check latest release of HearthStats Companion due to error: Unable to open connection to URL https://api.github.com/repos/HearthStats/HearthStats-Companion/releases?per_page=3 due to exception Invalid argument: connect net.hearthstats.updater.exception.UpdaterException: Unable to open connection to URL https://api.github.com/repos/HearthStats/HearthStats-Companion/releases?per_page=3 due to exception Invalid argument: connect at net.hearthstats.updater.api.GitHubRequest.connect(GitHubRequest.java:51) ~[HearthStats.exe:na] at net.hearthstats.updater.api.GitHubReleases.getReleases(GitHubReleases.java:22) ~[HearthStats.exe:na] at net.hearthstats.updater.api.GitHubReleases.getLatestReleaseForWindows(GitHubReleases.java:89) ~[HearthStats.exe:na] at net.hearthstats.Updater.getLatestRelease(Updater.java:35) ~[HearthStats.exe:na] at net.hearthstats.ui.CompanionFrame.checkForUpdates(CompanionFrame.scala:265) [HearthStats.exe:na] at net.hearthstats.Monitor.start(Monitor.scala:43) [HearthStats.exe:na] at net.hearthstats.Main.start(Main.java:79) [HearthStats.exe:na] at net.hearthstats.win.HearthStatsWin$.delayedEndpoint$net$hearthstats$win$HearthStatsWin$1(HearthStatsWin.scala:18) [HearthStats.exe:na] at net.hearthstats.win.HearthStatsWin$delayedInit$body.apply(HearthStatsWin.scala:14) [HearthStats.exe:na] at scala.Function0$class.apply$mcV$sp(Function0.scala:40) [HearthStats.exe:na] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) [HearthStats.exe:na] at scala.App$$anonfun$main$1.apply(App.scala:76) [HearthStats.exe:na] at scala.App$$anonfun$main$1.apply(App.scala:76) [HearthStats.exe:na] at scala.collection.immutable.List.foreach(List.scala:383) [HearthStats.exe:na] at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35) [HearthStats.exe:na] at scala.App$class.main(App.scala:76) [HearthStats.exe:na] at net.hearthstats.win.HearthStatsWin$.main(HearthStatsWin.scala:14) [HearthStats.exe:na] at net.hearthstats.win.HearthStatsWin.main(HearthStatsWin.scala) [HearthStats.exe:na] Caused by: java.net.SocketException: Invalid argument: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) ~[na:1.8.0_25] at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:1.8.0_25] at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.8.0_25] at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.8.0_25] at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_25] at sun.security.ssl.SSLSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at sun.net.NetworkClient.doConnect(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.https.HttpsClient.(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.https.HttpsClient.New(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source) ~[na:1.8.0_25] at net.hearthstats.updater.api.GitHubRequest.connect(GitHubRequest.java:47) ~[HearthStats.exe:na] ... 17 common frames omitted 10:18:15.249 [ main] WARN net.hearthstats.app - Unable to determine latest available version 10:18:15.249 [ main] INFO net.hearthstats.app - Waiting for Hearthstone (in windowed mode) ... 10:19:51.256 [Thread-4] INFO net.hearthstats.app - Hearthstone window found with process name Hearthstone.exe 10:19:51.313 [Thread-4] WARN net.hearthstats.app - Error communicating with HearthStats.net (GET cards) java.net.SocketException: Invalid argument: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) ~[na:1.8.0_25] at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:1.8.0_25] at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.8.0_25] at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.8.0_25] at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_25] at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_25] at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_25] at sun.net.NetworkClient.doConnect(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.New(Unknown Source) ~[na:1.8.0_25] at sun.net.www.http.HttpClient.New(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) ~[na:1.8.0_25] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) ~[na:1.8.0_25] at java.net.URL.openStream(Unknown Source) ~[na:1.8.0_25] at scala.io.Source$.fromURL(Source.scala:141) ~[HearthStats.exe:na] at scala.io.Source$.fromURL(Source.scala:136) ~[HearthStats.exe:na] at net.hearthstats.API$._get(API.scala:111) [HearthStats.exe:na] at net.hearthstats.API$.getCards(API.scala:184) [HearthStats.exe:na] at net.hearthstats.CardUtils$.cards$lzycompute(CardUtils.scala:18) [HearthStats.exe:na] at net.hearthstats.CardUtils$.cards(CardUtils.scala:16) [HearthStats.exe:na] at net.hearthstats.logmonitor.HearthstoneLogMonitor.(HearthstoneLogMonitor.scala:27) [HearthStats.exe:na] at net.hearthstats.Monitor.hearthstoneLogMonitor$lzycompute(Monitor.scala:26) [HearthStats.exe:na] at net.hearthstats.Monitor.hearthstoneLogMonitor(Monitor.scala:26) [HearthStats.exe:na] at net.hearthstats.Monitor.setMonitorHearthstoneLog(Monitor.scala:420) [HearthStats.exe:na] at net.hearthstats.Monitor.setupLogMonitoring(Monitor.scala:83) [HearthStats.exe:na] at net.hearthstats.Monitor._handleHearthstoneFound(Monitor.scala:115) [HearthStats.exe:na] at net.hearthstats.Monitor.net$hearthstats$Monitor$$pollHsImpl(Monitor.scala:144) [HearthStats.exe:na] at net.hearthstats.Monitor$$anon$1.run(Monitor.scala:406) [HearthStats.exe:na] at java.lang.Thread.run(Unknown Source) [na:1.8.0_25] 10:19:51.325 [Thread-4] ERROR net.hearthstats.app - API Error: Error communicating with HearthStats.net 10:19:53.180 [Thread-4] INFO n.h.u.FileObserver - observing file C:\Program Files (x86)\Hearthstone\Hearthstone_Data\output_log.txt 10:20:08.815 [Thread-4] INFO net.hearthstats.app - Title Screen Screen Detected 10:20:26.863 [Thread-4] INFO net.hearthstats.app - Main Menu Screen Detected 10:20:28.612 [Thread-4] INFO net.hearthstats.app - Today's Quests Screen Detected 10:21:28.427 [tQueue-0] INFO n.h.c.UserConfig$ - Setting config ui.window.x to 0 10:21:28.427 [tQueue-0] INFO n.h.c.UserConfig$ - Setting config ui.window.y to 0 10:21:28.428 [tQueue-0] INFO n.h.c.UserConfig$ - Setting config ui.window.width to 600 10:21:28.429 [tQueue-0] INFO n.h.c.UserConfig$ - Setting config ui.window.height to 600

tyrcho commented 10 years ago

are you behind a http proxy ? It seems that all your http requests (github for updates, google analytis, hearthstats.net for decks) are failing

Asoudo commented 10 years ago

I don't believe so, I'm using google chrome as my default browser and as far as I know it does not have an http proxy active. Is there any way I could double check? I've gone into the Change Proxy Settings>LAN Settings and unchecked the automatic detection just to be sure.