-
Notifications
You must be signed in to change notification settings - Fork 95
[v2] GitHub v4 - Internal error: should never happen: cannot build value of UserStatusOrderField from StringValue{value='UPDATED_AT'} #216
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
Comments
Attached fetched shema:__schema.json.zip |
Hi Daniel. Thanks for helping with the test of v2 alpha. I've dug into this, and it appears that the GitHub GraphQL API returns an introspection query result that isn't fully compliant with the GraphQL specification, and that I've contacted GitHub support to try and get this resolved as follows:
I've attached a fixed version of their schema as SDL which should allow you to work with their API until this gets resolved. Best regards, |
@jimkyndemeyer |
…#217) - Added support for custom scalars in introspection schema builder - Ensured proper escaping of description string as outlined in spec - Added retry introspection action and suggestion to skip defaultValues if they're non-spec
The upcoming alpha-8 which I'll release later today does two things to address the non-spec introspection result:
With that developers should be able to work with the GitHub endpoint, although GitHub needs to be spec-compliant before the defaultValues can be shown by this plugin. |
@jimkyndemeyer Hi, I'm testing alpha-8 with GitHub's endpoint... The first time an option with Retry without Default Values works well. Please, review attached screen: |
@jimkyndemeyer I found the issue... is related to the use of folder in schemaPath: works well: "schemaPath": "github.schema.json", .graphql is a folder in root folder |
Thanks, I'll take a look at how it writes the result to the virtual file system. Note that you can use the |
Hi Daniel. I tried reproducing based on the steps you outlined:
But the schema types are discovered as expected. Can you reliably reproduce the issue, and provide additional info to help reproduce this? Thanks, |
@jimkyndemeyer hi, yes, attached the screen with the state after click on Retry (skip default values from now on) v2.0.0-alpha-8 After that the preferences are: |
Hmm, it's not clear why this doesn't break here when I test it. For next steps I need to reproduce. Can you create a blank project, copy over your Note!: Take care that you don't include your github token. That should be referenced from your config via an environment variable |
Hi Daniel. I'm closing this based on being unable to reproduce the issue. If you find the time to create a repository which demonstrates the issue, then feel free to link to it here and I'll reopen. Best regards, |
I found the solution for the issue "There is no top level...." The schemaPath ".graphql/xxxxx" was marked as "Excluded" in WebStorm... :) I removed the exclusion and now works! Regards, |
Just got word from the GitHub dev team that they fixed the non-spec issues in their schema. I just introspected it using the plugin and it validates without errors 👍 |
GraphQL Introspection Error
Internal error: should never happen: cannot build value of UserStatusOrderField from StringValue{value='UPDATED_AT'}
Plugin: v2.0.0-alpha-6
{
"name": "GitHub v4 Schema",
"schemaPath": "graphql.schema.json",
"extensions": {
"endpoints": {
"GitHub": {
"url": "https://api.github.com/graphql",
"headers": {
"Authorization": "Bearer ${env:YOUR_GITHUB_ACCESS_TOKEN}"
}
}
}
}
}
The text was updated successfully, but these errors were encountered: