Skip to content

Trailing comments in query causes "string index out of range" #39

Closed
@andrewspode

Description

@andrewspode

I'm using graphiQL for testing my API where it is fairly common practice to comment out a query and write a new one.

{info}

Will run fine.

{info}
#

Will fail with "string index out of range" on line 268 of lexer.py (char=body[position])

I could be wrong - but shouldn't that be a >= rather than >?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions