Digital-Sapphire/PyUpdater

KeyError: 'html_url, TypeError: Object of type bytes is not JSON serializable

Elabbasy00 opened this issue · 0 comments

  1. Platform: Windows
client = Client(
        ClientConfig(), refresh=True, progress_hooks=[print_status_info]
    )
app_update = client.update_check(APP_NAME, APP_VERSION)
if app_update is not None:
    app_update.download(background=True)
    if app_update.is_downloaded():
        app_update.extract_overwrite()
else:
    app = App()
    name = app.get_name()
    if(name):
        data = Data_Transfer(app)
        data.start_asynco()
    app.mainloop()
  1. pyupdater collect-debug-info log
Traceback (most recent call last):
  File "C:\Users\Elabbasy\AppData\Local\Programs\Python\Python310\lib\site-packages\pyupdater\cli\commands.py", line 339, in _upload
    url = data["html_url"]
KeyError: 'html_url'
Object of type bytes is not JSON serializable
[ERROR] Object of type bytes is not JSON serializable
5364 ERROR: Object of type bytes is not JSON serializable
5366 DEBUG: Object of type bytes is not JSON serializable
Traceback (most recent call last):
  File "C:\Users\Elabbasy\AppData\Local\Programs\Python\Python310\lib\site-packages\pyupdater\cli\commands.py", line 339, in _upload
    url = data["html_url"]
KeyError: 'html_url'

During handling of the above exception, another exception occurred:


Traceback (most recent call last):
  File "C:\Users\Elabbasy\AppData\Local\Programs\Python\Python310\lib\site-packages\pyupdater\cli\__init__.py", line 79, in main
    _real_main(args)
  File "C:\Users\Elabbasy\AppData\Local\Programs\Python\Python310\lib\site-packages\pyupdater\cli\__init__.py", line 55, in _real_main
    dispatch_command(args, pyi_args)
  File "C:\Users\Elabbasy\AppData\Local\Programs\Python\Python310\lib\site-packages\pyupdater\cli\__init__.py", line 68, in dispatch_command
    cmd(args, pyi_args)
  File "C:\Users\Elabbasy\AppData\Local\Programs\Python\Python310\lib\site-packages\pyupdater\cli\commands.py", line 372, in _cmd_collect_debug_info
    url = _upload(upload_data)
  File "C:\Users\Elabbasy\AppData\Local\Programs\Python\Python310\lib\site-packages\pyupdater\cli\commands.py", line 342, in _upload
    log.debug(json.dumps(r.data, indent=2))
  File "C:\Users\Elabbasy\AppData\Local\Programs\Python\Python310\lib\json\__init__.py", line 238, in dumps
    **kw).encode(obj)
  File "C:\Users\Elabbasy\AppData\Local\Programs\Python\Python310\lib\json\encoder.py", line 201, in encode
    chunks = list(chunks)
  File "C:\Users\Elabbasy\AppData\Local\Programs\Python\Python310\lib\json\encoder.py", line 438, in _iterencode
    o = _default(o)
  File "C:\Users\Elabbasy\AppData\Local\Programs\Python\Python310\lib\json\encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type bytes is not JSON serializable