Skip to content

exclude() doesn't work. #14

@azulika

Description

@azulika

Summary

exclude() returns html instead of JSON.

Reproduction Steps

RuntimeError: Failed to parse the response as JSON.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "G:\AkiApi2025\main.py", line 18, in <module>
    aki.answer(user_input)
    ~~~~~~~~~~^^^^^^^^^^^^
  File "G:\AkiApi2025\.venv\Lib\site-packages\akinator\client.py", line 255, in answer
    return self.exclude()
           ~~~~~~~~~~~~^^
  File "G:\AkiApi2025\.venv\Lib\site-packages\akinator\client.py", line 334, in exclude
    raise RuntimeError("Failed to exclude the proposition.") from e
RuntimeError: Failed to exclude the proposition.

It seems /exclude doesn't work anymore at least with the current method. The same happens with https://github.com/advnpzn/akipy/ .

Minimal Reproducible Code

Expected Results

exclude() lets the session continue.

Actual Results

exclude() results in an error.

System Information

Windows 11 Pro

Checklist

  • I have searched open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have made sure that this issue is valid.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions