Skip to content

Error #819

Description

@haesleinhuepf

I got this error message:

Traceback (most recent call last):
    File "/opt/hostedtoolcache/Python/3.13.6/x64/lib/python3.13/site-packages/git_bob/_ai_github_utilities.py", line 683, in solve_github_issue
      created_files = create_or_modify_file(repository, issue, filename, branch_name, discussion,
                                                            prompt_function)
    File "/opt/hostedtoolcache/Python/3.13.6/x64/lib/python3.13/site-packages/git_bob/_ai_github_utilities.py", line 369, in create_or_modify_file
      file_content = Config.git_utilities.decode_file(Config.git_utilities.get_file_in_repository(repository, branch_name, filename))
    File "/opt/hostedtoolcache/Python/3.13.6/x64/lib/python3.13/site-packages/git_bob/_github_utilities.py", line 765, in decode_file
      return file.decoded_content.decode()
             ^^^^^^^^^^^^^^^^^^^^
    File "/opt/hostedtoolcache/Python/3.13.6/x64/lib/python3.13/site-packages/github/ContentFile.py", line 124, in decoded_content
      assert self.encoding == "base64", f"unsupported encoding: {self.encoding}"
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  AssertionError: unsupported encoding: none

git-bob ask gpt-5 to think about this ans propose a fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions