Script exits when encountering error JSONDecodeError. It is redeeming some keys but then errors out after a time. Possibly not interacting well with invalid responses (throttling/denial-of-service protection/firewall by HumbleBundle or Steam?)
Traceback (most recent call last):
File "D:\Dev\Python\Scripts\SteamActivator\humblesteamkeysredeemer.py", line 800, in
redeem_steam_keys(humble_session, revealed_keys)
File "D:\Dev\Python\Scripts\SteamActivator\humblesteamkeysredeemer.py", line 457, in redeem_steam_keys
owned_app_details = get_owned_apps(session)
File "D:\Dev\Python\Scripts\SteamActivator\humblesteamkeysredeemer.py", line 419, in get_owned_apps
owned_content = steam_session.get(STEAM_USERDATA_API).json()
File "C:\Users\andre\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py", line 900, in json
return complexjson.loads(self.text, kwargs)
File "C:\Users\andre\AppData\Local\Programs\Python\Python39\lib\json__init__.py", line 335, in loads
raise JSONDecodeError("Unexpected UTF-8 BOM (decode using utf-8-sig)",
json.decoder.JSONDecodeError: Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0)
Traceback (most recent call last):
File "D:\Dev\Python\Scripts\SteamActivator\humblesteamkeysredeemer.py", line 800, in
redeem_steam_keys(humble_session, revealed_keys)
File "D:\Dev\Python\Scripts\SteamActivator\humblesteamkeysredeemer.py", line 511, in redeem_steam_keys
code = _redeem_steam(session, key["redeemed_key_val"])
File "D:\Dev\Python\Scripts\SteamActivator\humblesteamkeysredeemer.py", line 280, in _redeem_steam
blob = r.json()
File "C:\Users\andre\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py", line 900, in json
return complexjson.loads(self.text, kwargs)
File "C:\Users\andre\AppData\Local\Programs\Python\Python39\lib\json__init__.py", line 335, in loads
raise JSONDecodeError("Unexpected UTF-8 BOM (decode using utf-8-sig)",
json.decoder.JSONDecodeError: Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0)
Script exits when encountering error JSONDecodeError. It is redeeming some keys but then errors out after a time. Possibly not interacting well with invalid responses (throttling/denial-of-service protection/firewall by HumbleBundle or Steam?)
Traceback (most recent call last): File "D:\Dev\Python\Scripts\SteamActivator\humblesteamkeysredeemer.py", line 800, in
redeem_steam_keys(humble_session, revealed_keys)
File "D:\Dev\Python\Scripts\SteamActivator\humblesteamkeysredeemer.py", line 457, in redeem_steam_keys
owned_app_details = get_owned_apps(session)
File "D:\Dev\Python\Scripts\SteamActivator\humblesteamkeysredeemer.py", line 419, in get_owned_apps
owned_content = steam_session.get(STEAM_USERDATA_API).json()
File "C:\Users\andre\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py", line 900, in json
return complexjson.loads(self.text, kwargs)
File "C:\Users\andre\AppData\Local\Programs\Python\Python39\lib\json__init__.py", line 335, in loads
raise JSONDecodeError("Unexpected UTF-8 BOM (decode using utf-8-sig)",
json.decoder.JSONDecodeError: Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0)
Traceback (most recent call last):
File "D:\Dev\Python\Scripts\SteamActivator\humblesteamkeysredeemer.py", line 800, in
redeem_steam_keys(humble_session, revealed_keys)
File "D:\Dev\Python\Scripts\SteamActivator\humblesteamkeysredeemer.py", line 511, in redeem_steam_keys
code = _redeem_steam(session, key["redeemed_key_val"])
File "D:\Dev\Python\Scripts\SteamActivator\humblesteamkeysredeemer.py", line 280, in _redeem_steam
blob = r.json()
File "C:\Users\andre\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py", line 900, in json
return complexjson.loads(self.text, kwargs)
File "C:\Users\andre\AppData\Local\Programs\Python\Python39\lib\json__init__.py", line 335, in loads
raise JSONDecodeError("Unexpected UTF-8 BOM (decode using utf-8-sig)",
json.decoder.JSONDecodeError: Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0)