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

Keg broken? #66

Open
vrtx-mortem opened this issue Aug 22, 2024 · 0 comments
Open

Keg broken? #66

vrtx-mortem opened this issue Aug 22, 2024 · 0 comments

Comments

@vrtx-mortem
Copy link

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.

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

1 participant