python-graphql-client
python-graphql-client copied to clipboard
exception Attempt to decode JSON with unexpected mimetype: text/html
insert_query_result = await self.graphql_client.execute_async(query=insert_query, File "/root/.cache/pypoetry/virtualenvs/maanger-py3.8/lib/python3.8/site-packages/python_graphql_client/graphql_client.py", line 76, in execute_async return await response.json() File "/root/.cache/pypoetry/virtualenvs/manager-py3.8/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 1097, in json raise ContentTypeError( aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://hasura/v1/graphql')
Hey @KhealthDavid! Can you put more detail into the error you're getting here? I see you have a PR up to fix this and I'll take a peek at it later, but just want to confirm what error you're getting to understand what's going on.