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

bug: GraphiQL path does not work with version 4.9.7 neither introspection query #738

Closed
ghost opened this issue Nov 17, 2021 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Nov 17, 2021

Expected behavior

Introspection query does not work neither GRAPHIQL path

Actual behavior

The graphiql and instropection must work

Steps to reproduce

I updated the framework to 4.9.7 and when going to http://localhost:8080/graphiql/index.html the GRAPHIQL does not work.

Here is the query that the graphiql does automatically:

    query IntrospectionQuery {
      __schema {
        
        queryType { name }
        mutationType { name }
        subscriptionType { name }
        types {
          ...FullType
        }
        directives {
          name
          description
          
          locations
          args {
            ...InputValue
          }
        }
      }
    }

    fragment FullType on __Type {
      kind
      name
      description
      
      fields(includeDeprecated: true) {
        name
        description
        args {
          ...InputValue
        }
        type {
          ...TypeRef
        }
        isDeprecated
        deprecationReason
      }
      inputFields {
        ...InputValue
      }
      interfaces {
        ...TypeRef
      }
      enumValues(includeDeprecated: true) {
        name
        description
        isDeprecated
        deprecationReason
      }
      possibleTypes {
        ...TypeRef
      }
    }

    fragment InputValue on __InputValue {
      name
      description
      type { ...TypeRef }
      defaultValue
      
      
    }

    fragment TypeRef on __Type {
      kind
      name
      ofType {
        kind
        name
        ofType {
          kind
          name
          ofType {
            kind
            name
            ofType {
              kind
              name
              ofType {
                kind
                name
                ofType {
                  kind
                  name
                  ofType {
                    kind
                    name
                  }
                }
              }
            }
          }
        }
      }
    }

Response:
{"timestamp":"2021-11-17T15:15:35.562+00:00","path":"/graphiql/%3CDGS_GRAPHQL_PATH%3E","status":404,"error":"Not Found","message":null,"requestId":"ce7c76ba-20"}

{ "errors": [ "{\n \"timestamp\": \"2021-11-17T15:15:35.591+00:00\",\n \"path\": \"/graphiql/%3CDGS_GRAPHQL_PATH%3E\",\n \"status\": 404,\n \"error\": \"Not Found\",\n \"message\": null,\n \"requestId\": \"ce7c76ba-21\"\n}" ] }

If I watch the console and the network in chrome tab I am seeing these errors:

DevTools failed to load source map: Could not load content for https://unpkg.com/graphiql/graphiql.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

DevTools failed to load source map: Could not load content for https://unpkg.com/graphiql@1.5.1/graphiql.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

The problem that i suspect is that is trying to download those files with .map extensions, does not makes any sense.
The real files are without the .map extension... I do not know what is happening.
These are the correct URLS:
Request URL: https://unpkg.com/graphiql@1.5.1/graphiql.min.js
Request URL: https://unpkg.com/graphiql@1.5.1/graphiql.min.css

@ghost ghost added the bug Something isn't working label Nov 17, 2021
@heoYH
Copy link

heoYH commented Nov 22, 2021

#737

@berngp
Copy link
Contributor

berngp commented Nov 23, 2021

Thanks @heoYH, will validate the changes on master and would have release soon with your changes.

@berngp
Copy link
Contributor

berngp commented Nov 30, 2021

Fix should be available in the latest release.

@berngp berngp closed this as completed Nov 30, 2021
@willisjtc
Copy link

Looks like i'm running into this issue now and i'm on 5.1.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants