python-graphql-client icon indicating copy to clipboard operation
python-graphql-client copied to clipboard

exception Attempt to decode JSON with unexpected mimetype: text/html

Open KhealthDavid opened this issue 3 years ago • 1 comments

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')

KhealthDavid avatar May 02 '21 09:05 KhealthDavid

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.

steve148 avatar May 03 '21 18:05 steve148