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.

More specific error messages when a problem is encountered with the configuration.

See original GitHub issue

Is your feature request related to a problem? Please describe.

I have a quite large codegen.js file and just made a number of changes to it and clearly got something wrong. When I run graphql-codegen though it simply prints:

Invalid "generates" config!
Invalid "generates" config!

This doesn’t give me a lot to go on for tracking down the issue.

Describe the solution you’d like

I would like it if the error message printed could be a bit more specific about what was actually invalid about the config.

Describe alternatives you’ve considered

I checked that I can load the config as a node module so there is no syntax error. I looked for a verbose command line argument and found none.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ardatancommented, Aug 12, 2021

Fixed in @graphql-tools/utils with this commit; https://github.com/ardatan/graphql-tools/commit/b968463124cd2e397852d4e57ebe36acf3602462

It’ll be available soon in GraphQL Codegen cc @dotansimha

1reaction
n1ru4lcommented, Aug 20, 2021

The fix has been published 😇

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration error messages - IBM
Message Cause So... CLFRO0045E: Failed to verify request. This issue is caused because of session timeout. Us... CLFRO2008E: internal error An unspecified error occurred. Ch......
Read more >
Error Handling Flaws - Information and How to Fix - Veracode
Improper error handling flaws occur when an error message that's displayed to an end user provides clues about how an application or website...
Read more >
Improper Error Handling - OWASP Foundation
The most common problem is when detailed internal error messages such as stack traces, database dumps, and error codes are displayed to the...
Read more >
Troubleshooting Stop error messages that may occur when ...
Describes the Stop error messages that you may receive when you try to install Windows Vista. Discusses the possible causes of each Stop...
Read more >
Configuration error messages - HCL Product Documentation
Message Cause So... CLFRO0045E: Failed to verify request. This issue is caused because of session timeout. Us... CLFRO2008E: internal error An unspecified error occurred. Ch......
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