I'm trying to get pywikibot set up for a Miraheze site (https://comprehensibleinput.miraheze.org) but when I run login, it gives response 200, as the content of the page is html, not json. But as a test, when I try logging into wikipedia, it gets the correct json format. I tried figuring it out myself, but I guess I don't know enough about Python to do it. I added the python module snoop to a couple functions that seem to be somewhere near the problem, and I'll upload the console output I got. The final error is at the bottom. I'll also add the user-config.py and family file in case I did something wrong there.
Python 3.10.7 on Ubuntu 22.04
Mediawiki 1.38.4
Pywikibot 7.6.0
comprehensibleinputwiki_family.py
user-config.py
console output
pywikibot log