question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syntax Error: Unexpected <EOF>

See original GitHub issue

Hello. I am testing this package out with the following config and schema file:

introspection:
  schemaFile: ./sdl.gpl
type Query {
  staff(staffId: Int!): Staff
}

"""
Our fearless staff
"""
type Staff {
  """
  Staff ID
  """
  staffId: Int

  """
  Staff first name
  """
  firstName: String

  """
  Staff last name
  """
  lastName: String
  email: String
  fightsBearsAndWins: Boolean
}

When running npx spectaql config.yml I get the following error:

Syntax Error: Unexpected <EOF>.

Even when the schema file is empty the error occurs.

On version 0.12.0 on Ubuntu. npm version is 6.14.6.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

2reactions
newhousecommented, Apr 1, 2022

This is now out in 1.0.0

2reactions
pylippcommented, Feb 28, 2022

It seems that spectaql does not recognise the .gpl file extension (might be a typo anyways?). This config works on my end:

introspection:
  schemaFile:
    - sdl.gql
info:
  x-swaggerUrl: https://www.foo.bar
Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Unexpected EOF While Parsing: The Way To Fix It
The error “unexpected EOF while parsing” occurs when the interpreter reaches the end of a Python file before every code block is complete....
Read more >
SyntaxError: unexpected EOF while parsing - Stack Overflow
The SyntaxError: unexpected EOF while parsing means that the end of your source code was reached before all code blocks were completed.
Read more >
Python SyntaxError: unexpected EOF while parsing Solution
The “SyntaxError: unexpected EOF while parsing” error occurs when the end of your source code is reached before all code is executed. This ......
Read more >
SyntaxError: unexpected EOF while parsing - LearnDataSci
EOF stands for "end of file," and this syntax error occurs when Python detects an unfinished statement or block of code. This can...
Read more >
SyntaxError: unexpected EOF while parsing - STechies
The SyntaxError: unexpected EOF while parsing error also is known as parsing error where the control in the program/code reaches to the end,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found