hearthstone-linux icon indicating copy to clipboard operation
hearthstone-linux copied to clipboard

Keg broken?

Open vrtx-mortem opened this issue 6 months ago • 0 comments

When running craft.sh:

Traceback (most recent call last):
  File "[REDACTED]/hearthstone-linux/keg/bin/ngdp", line 1048, in <module>
    main()
  File "[REDACTED]/hearthstone-linux/venv/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[REDACTED]/hearthstone-linux/venv/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "[REDACTED]/hearthstone-linux/venv/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[REDACTED]/hearthstone-linux/venv/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[REDACTED]/hearthstone-linux/venv/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[REDACTED]/hearthstone-linux/venv/lib/python3.12/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[REDACTED]/hearthstone-linux/keg/bin/ngdp", line 309, in fetch
    ctx.obj.fetch_versions(versions, blobs, remote_cdn, metadata_only, tags)
  File "[REDACTED]/hearthstone-linux/keg/bin/ngdp", line 205, in fetch_versions
    for queue in fetcher.fetch_metadata():
  File "[REDACTED]/hearthstone-linux/venv/lib/python3.12/site-packages/keg/core/fetcher.py", line 308, in fetch_metadata
    yield from self.fetch_config()
  File "[REDACTED]/hearthstone-linux/venv/lib/python3.12/site-packages/keg/core/fetcher.py", line 258, in fetch_config
    self.product_config = self.local_cdn.get_product_config(product_config_key)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[REDACTED]/hearthstone-linux/venv/lib/python3.12/site-packages/keg/cdn.py", line 89, in get_product_config
    return json.loads(self.fetch_config_data(key, verify))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/__init__.py", line 341, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
  • tried deleting venv dir and repeat
  • tried fresh new git pull. Same things happens

I believe it's keg issue cause AFAICT it expects valid json and simple print before return at keg/cdn.py:89 shows is receives garbage.

vrtx-mortem avatar Aug 22 '24 17:08 vrtx-mortem