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

400 Client Error: Bad Request for URL #2

Open
qbinary opened this issue Jul 20, 2023 · 1 comment
Open

400 Client Error: Bad Request for URL #2

qbinary opened this issue Jul 20, 2023 · 1 comment

Comments

@qbinary
Copy link

qbinary commented Jul 20, 2023

Traceback (most recent call last):
  File "/home/pzserver/PZModScraper/getcollection.py", line 60, in request_ugc
    return api.call(method_path='ISteamRemoteStorage.GetPublishedFileDetails',\
  File "/home/pzserver/.local/lib/python3.10/site-packages/steam/webapi.py", line 167, in call
    return getattr(getattr(self, interface), method)(**kwargs)
  File "/home/pzserver/.local/lib/python3.10/site-packages/steam/webapi.py", line 327, in __call__
    return webapi_request(
  File "/home/pzserver/.local/lib/python3.10/site-packages/steam/webapi.py", line 431, in webapi_request
    resp.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.steampowered.com/ISteamRemoteStorage/GetPublishedFileDetails/v1/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pzserver/PZModScraper/getcollection.py", line 272, in <module>
    modjson = request_ugc(len(wscollection),\
  File "/home/pzserver/PZModScraper/getcollection.py", line 63, in request_ugc
    print("HTTP Error encountered, exiting." + e.with_traceback())
TypeError: BaseException.with_traceback() takes exactly one argument (0 given)
  • Command used: python3 getcollection.py default
  • I supplied a collection id
  • I supplied an API key
  • I ran the script from the folder it is in
@TrainDoctor
Copy link
Owner

Looks like the URL for the API call needs to be changed. I might get time to take a look at this soon but I'm not sure.

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