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

Unable to generate code #3347

Closed
JBergsee opened this issue Mar 5, 2024 · 4 comments
Closed

Unable to generate code #3347

JBergsee opened this issue Mar 5, 2024 · 4 comments
Labels
question Issues that have a question which should be addressed

Comments

@JBergsee
Copy link

JBergsee commented Mar 5, 2024

Question

Is there a max size of the schema file? I am trying to generate code from this file:
http://api-schema-doc.s3-website-eu-west-1.amazonaws.com/schema-beta.json
But the cli "generate" command just tells me JSON Parse error: Unexpected EOF
Is there any way of knowing which line or type that generates the error?

@JBergsee JBergsee added the question Issues that have a question which should be addressed label Mar 5, 2024
@calvincestari
Copy link
Member

Hi @JBergsee, there doesn't appear to be anything invalid with the schema format and the length isn't an issue. I was able to generate a simple operation against the schema so I suggest checking that your operation files don't have any formatting issues.

Copy link
Contributor

github-actions bot commented Mar 5, 2024

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better.

@JBergsee
Copy link
Author

JBergsee commented Mar 5, 2024

Thank you @calvincestari !
I have been wasting an entire week on trying to fix the schema, when it was a capital "A" instead of an "a" in an operation file that made the whole thing fail...
I'm extremely grateful for this breakthrough!

@calvincestari
Copy link
Member

I'm glad we could help and you managed to get it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issues that have a question which should be addressed
Projects
None yet
Development

No branches or pull requests

2 participants