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

Android Mobile App Apollo SDK Update - Schema Introspection Error #6122

Open
balacognizant opened this issue Aug 19, 2024 · 2 comments
Open
Labels
🐛 Type: Bug ⌛ Waiting for info More information is required

Comments

@balacognizant
Copy link

Version

v4.0.0

Summary

Integrated Apollo SDK v4.0.0 in Android mobile app project, but receiving introspection error on code compile when using a large size schema file given to us by backend team. Please let us know what could be the issue

Steps to reproduce the behavior

No response

Logs

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:generateServiceApolloSources'.
    Caused by: com.apollographql.apollo3.relocated.com.apollographql.apollo3.ast.SourceAwareException: e: src/main/graphql/<package_name>/schema.json: (-1, 0): names starting with '__' are reserved for introspection
    at com.apollographql.apollo3.relocated.com.apollographql.apollo3.ast.IssueKt.checkNoErrors(SourceFile:8)
    at com.apollographql.apollo3.relocated.com.apollographql.apollo3.ast.GQLResult.valueAssertNoErrors(SourceFile:1)
    at com.apollographql.apollo3.compiler.IncomingOptions$Companion.resolveSchema(SourceFile:146)
    at com.apollographql.apollo3.gradle.internal.ApolloGenerateSourcesTask.taskAction(SourceFile:54)
@BoD
Copy link
Contributor

BoD commented Aug 19, 2024

Hi! Are there any types in that schema that start with __? (Don't hesitate to attach the schema to the issue so we can have a look).

@BoD BoD added the ⌛ Waiting for info More information is required label Aug 19, 2024
@BoD
Copy link
Contributor

BoD commented Oct 1, 2024

Hey @balacognizant , I was wondering if you had any news on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug ⌛ Waiting for info More information is required
Projects
None yet
Development

No branches or pull requests

2 participants