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

Response [403] from initial request #160

Open
lbianculli opened this issue Aug 17, 2019 · 4 comments
Open

Response [403] from initial request #160

lbianculli opened this issue Aug 17, 2019 · 4 comments

Comments

@lbianculli
Copy link

lbianculli commented Aug 17, 2019

Hi. I have been unable to get a successful response when using download_replays.py. I set up a developer account with Blizzard and have triple-checked that I am using the correct key, secret, and version. I have not changed the code in the .py file at all. I was wondering if there is anything obvious I might be missing? Here is the entire trace:

Searching replay packs with client version: 4.9.1
Traceback (most recent call last):
  File "C:\Users\lbianculli\s2client-proto-master\samples\replay-api\download_replays.py", line 193, in <module>
    main()
  File "C:\Users\lbianculli\s2client-proto-master\samples\replay-api\download_replays.py", line 189, in main
    download(**args_dict)
  File "C:\Users\lbianculli\s2client-proto-master\samples\replay-api\download_replays.py", line 102, in download
    meta_file_urls = api.search_by_client_version(version)
  File "C:\Users\lbianculli\s2client-proto-master\samples\replay-api\download_replays.py", line 85, in search_by_client_version
    response = self.get(self.url("/data/sc2/search/archive"), params)
  File "C:\Users\lbianculli\s2client-proto-master\samples\replay-api\download_replays.py", line 64, in get
    raise RequestError("Request to '{}' failed. response={}".format(url, response))
__main__.RequestError: Request to 'https://us.api.blizzard.com/data/sc2/search/archive' failed. response=<Response [403]>
@lbianculli lbianculli changed the title Response [403] from initial post request Response [403] from initial request Aug 17, 2019
@tangzk
Copy link

tangzk commented Aug 21, 2019

+1, I have encountered this problem when I run this script to download 4.1.3 replays.

@lbianculli
Copy link
Author

Wanted to send an update. I have not had trouble with responses from other API calls -- ladder statistics for example.

@xCharlesxx
Copy link

xCharlesxx commented Aug 27, 2019

+1, I'm also having this problem trying to download 4.10.1 replays.
The code successfully requests a token from ClientID and client Secret and establishes connection but returns '403 forbidden' when trying to access requested data

@lbianculli
Copy link
Author

Hi. If anyone had forgotten about this but was still curious: I just tried running today for 4.9.1 and it worked. Thanks!

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

3 participants