Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: Unable to get TypeRef for [] in context Field #51

Closed
mbrg opened this issue Sep 20, 2022 · 3 comments
Closed

Exception: Unable to get TypeRef for [] in context Field #51

mbrg opened this issue Sep 20, 2022 · 3 comments

Comments

@mbrg
Copy link

mbrg commented Sep 20, 2022

Hi, this is a very cool project!!

Could you help me figure out what can I do to resolve this? I'm getting an error with command:

python3 -m clairvoyance -o ./schema.json -w wordlist.txt https://www.REDACTED.com/graphql/

Full error:

Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/mbrg/install/clairvoyance/clairvoyance/__main__.py", line 4, in <module>
    cli()
  File "/home/mbrg/install/clairvoyance/clairvoyance/cli.py", line 109, in cli
    asyncio.run(
  File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/home/mbrg/install/clairvoyance/clairvoyance/cli.py", line 67, in blind_introspection
    schema = await oracle.clairvoyance(
  File "/home/mbrg/install/clairvoyance/clairvoyance/oracle.py", line 503, in clairvoyance
    results = await asyncio.gather(*tasks)
  File "/home/mbrg/install/clairvoyance/clairvoyance/oracle.py", line 438, in explore_field
    typeref = await probe_field_type(
  File "/home/mbrg/install/clairvoyance/clairvoyance/oracle.py", line 358, in probe_field_type
    return await probe_typeref(documents, 'Field')
  File "/home/mbrg/install/clairvoyance/clairvoyance/oracle.py", line 342, in probe_typeref
    raise Exception(e) from e
Exception: Unable to get TypeRef for ['query { ApplicationType }', 'query { ApplicationType { lol } }'] in context Field

Probably related to #20

@doomerhunter
Copy link

Hi !

Bumping with the same issue :

Exception: Unable to get TypeRef for ['query { 96013192d3b3 }', 'query { 96013192d3b3 { lol } }'] in context Field

Query :

query { 96013192d3b3 { lol } }

Response :

{
  "errors": [
    {
      "message": "Syntax Error: Invalid number, expected digit but got: \"d\".",
      "locations": [
        {
          "line": 1,
          "column": 17
        }
      ],
      "extensions": {
        "code": "GRAPHQL_PARSE_FAILED"
      }
    }
  ]
}

Just to add a bit of context :)

Have a nice day !

@nikitastupin
Copy link
Owner

Hey @mbrg and @ch4dbzh! Could you check this with the latest (2.5.1) version of Clairvoyance and see whether it solved the problem? Thanks!

@mbrg
Copy link
Author

mbrg commented Apr 4, 2023

Hey @mbrg and @ch4dbzh! Could you check this with the latest (2.5.1) version of Clairvoyance and see whether it solved the problem? Thanks!

It does! ty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants