{"record":{"id":"b23f92418375deb9","repo":"usebruno/bruno","slug":"introspection-query-failed","errorCode":null,"errorMessage":"Introspection query failed","messagePattern":"Introspection query failed","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-app/src/components/RequestPane/GraphQLSchemaActions/useGraphqlSchema.js","lineNumber":53,"sourceCode":"    try {\n      const saved = localStorage.getItem(localStorageKey);\n      if (!saved) {\n        return null;\n      }\n      let parsedData = safeParseJSON(saved);\n      const { schema } = buildAndValidateSchema(parsedData);\n      return schema;\n    } catch (err) {\n      localStorage.removeItem(localStorageKey);\n      console.warn('Failed to load cached GraphQL schema:', err.message);\n      return null;\n    }\n  });\n\n  const loadSchemaFromIntrospection = async () => {\n    const response = await fetchGqlSchema(endpoint, environment, request, collection);\n    if (!response) {\n      throw new Error('Introspection query failed');\n    }\n    if (response.status !== 200) {\n      throw new Error(response.statusText);\n    }\n    const data = response.data?.data;\n    if (!data) {\n      throw new Error('No data returned from introspection query');\n    }\n    setSchemaSource('introspection');\n    return data;\n  };\n\n  const loadSchemaFromFile = async () => {\n    const schemaContent = await ipcRenderer.invoke('renderer:load-gql-schema-file');\n    if (!schemaContent) {\n      setIsLoading(false);\n      return;\n    }","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-app/src/components/RequestPane/GraphQLSchemaActions/useGraphqlSchema.js#L35-L71","documentation":"Error \"Introspection query failed\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-app/src/components/RequestPane/GraphQLSchemaActions/useGraphqlSchema.js:53 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the GraphQL endpoint URL is correct and reachable.","Verify auth headers and that the server supports introspection (it may be disabled in production)."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9bdd81c7bdc57006e5f5ebffb79321a8d979f712","analyzedAt":"2026-08-13T04:09:25.751Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}