Open nikitastupin opened 3 years ago
Well I don't know what to say anymore, tried the fix-issues-16-and-20 however no difference was made.
Unfortunately, fix-issues-16-and-20
fixes another issue but it's good to know that you've tested it for your case.
If you'll provide the exact endpoint you're running clairvoyance against it would greatly facilitate debugging đ
Sure, im have been testing the tool on this website, and also here (which has introspection enabled)
error:
python3 -m clairvoyance -vv -o ../opensea-schema.json -w /Users/x/google-10000-english/google-10000-english-usa-no-swears-short.txt https://api.xx.io/graphql/
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.1_6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/Cellar/python@3.9/3.9.1_6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/x/GraphQL-clairvoyance/clairvoyance/main.py", line 96, in
I'm debugging the problem with KhanAcademy Graphql.
It seems that fetch_root_typenames()
is causing the problem. The HTTP POST request to the GraphQL endpoint using this query query { __typename }
returns a 400 Operation not permitted.
status code. Thus, the line 418 of oracle.py
returns data
equals an empty dictionary. which means Root typenames are: {'queryType': None, 'mutationType': None, 'subscriptionType': None}
which in turns means :
schema.types[typename].fields.append(field)
will fail because types
contains only String
and ID
and nothing more (no Query).I hope I helped a little bit ...
Getting same error.
Commented out 473 and its working now..
Hi đ
@Sim4n6, thanks for debugging! https://www.khanacademy.org/api/internal/graphql
just blocks fetching typename for root types (same goes for https://www.beautypie.com/graphql
mentioned earlier but https://anilist.co/graphql
works fine for me). However, we can obtain typename for root types using probe_typename
function. I started fixing the issue in #30, hopefully this will help.
@barrett092, I'm not sure that the program will give you any meaningful output if you'll comment out the line.
Anyways, it seems that it's better to rewrite the codebase as discussed in #26 because now it requires too much time to understand the very fragile code to fix even a small issue.
I'm also having the same error when running the tool, however changing the bucket size to 256 didn't solve the issue for me either. OS: Ubuntu 20.04 LTS Python: 3.8.10
Here is the output when using the bucket size to 256
And here is the output when running on default ammount of bucket size (4096)
Edit: Tried it also in a fresh installed Kali Linux (python 3.9.2) and it also gets the same error
Originally posted by @kleiton0x00 in https://github.com/nikitastupin/clairvoyance/issues/16#issuecomment-903091682