HearthSim / HSTracker

A deck tracker and deck manager for Hearthstone on macOS
https://hsreplay.net/downloads/
MIT License
1.19k stars 177 forks source link

Can not upload replay to HSReplay.net with multiple regions #801

Closed tommyjiang closed 7 years ago

tommyjiang commented 7 years ago

When using HSTracker, I am able to upload replay to HSReplay.net when playing in the US region. When in KR or EU region, I can not upload my replay.

Do I need to change some settings in the App or on the HSRepaly.net?

tommyjiang commented 7 years ago

I am able to upload a replay in EU region just now but I failed to do so in the second game..

jleclanche commented 7 years ago

Is it possible it has nothing to do with the region and it's just low performance internet?

tommyjiang commented 7 years ago

@jleclanche It might be related with the Internet and GFW in China. Can I manually upload the replay to HSReplay.net to test the Internet connection?

jleclanche commented 7 years ago

Not easily no, but I've heard this before, people with connections in china having spottiness issues uploading the replays.

In HDT, viewing the locally-saved replay will attempt uploading it again, that could help.

tommyjiang commented 7 years ago

I am afraid this might be related to the GFW in China. Currently no proper solution is available. Maybe I can try using proxy..

tommyjiang commented 7 years ago

There was a post on Reddit discussing the update in China.

https://www.reddit.com/r/hsreplay/comments/50xjlr/are_you_in_china_we_need_your_help/

It mentioned that:

We're going to add a fallback URL for auto-updates. Instead of downloading from Github, it'll download from https://downloads.hsdecktracker.net (or something like that). That host will have Cloudflare sitting in front of it, which should be enough to make it reachable from behind the GFW.

Maybe the only solution is to use mirror in China to solve this. I notice Hearthstone-Deck-Tracker handles this with some codes in the Update function. Please refer to here:

https://github.com/HearthSim/Hearthstone-Deck-Tracker/blob/f9bac8e914ec8e9ae58415be0b3b5436346d3ef9/Hearthstone%20Deck%20Tracker/Utility/Updating/Updater.Squirrel.cs

jleclanche commented 7 years ago

We'd add an API mirror if it were simple. Unfortunately it's not as easy as for the downloads, which are simply statically hosted files. Additionally, the mirrors don't entirely solve the issue either as they're in Japan.. it's a bit easier to reach, but we don't have access to mainland china ourselves.

tommyjiang commented 7 years ago

That sounds terrible :( The replay function is amazing for statistics of ranked and arena games. I will try to find whether this can be solved.