{"record":{"id":"71e66a6d30387eaf","repo":"usebruno/bruno","slug":"failed-to-parse-graphql-variables-err-message","errorCode":null,"errorMessage":"Failed to parse GraphQL variables: ${err.message}","messagePattern":"Failed to parse GraphQL variables: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-cli/src/runner/run-single-request.js","lineNumber":370,"sourceCode":"          testResults: [],\n          preRequestTestResults,\n          postResponseTestResults: [],\n          nextRequestName: nextRequestName,\n          shouldStopRunnerExecution\n        };\n      }\n    }\n\n    // interpolate variables inside request\n    interpolateVars(request, envVariables, runtimeVariables, processEnvVars);\n\n    // if this is a graphql request, parse the variables, only after interpolation\n    // https://github.com/usebruno/bruno/issues/884\n    if (request.mode === 'graphql' && typeof request.data?.variables === 'string') {\n      try {\n        request.data.variables = JSON.parse(request.data.variables);\n      } catch (err) {\n        throw new Error(`Failed to parse GraphQL variables: ${err.message}`);\n      }\n    }\n\n    if (!hasExplicitScheme(request.url)) {\n      request.url = `http://${request.url}`;\n    }\n\n    if (request.settings?.encodeUrl) {\n      request.url = encodeUrl(request.url);\n    }\n\n    const insecure = get(options, 'insecure', false);\n    const noproxy = get(options, 'noproxy', false);\n    const cachedSystemProxy = get(options, 'cachedSystemProxy', null);\n    const disableCache = !get(options, 'cacheSslSession', false);\n    const httpsAgentRequestFields = {};\n\n    if (insecure) {","sourceCodeStart":352,"sourceCodeEnd":388,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-cli/src/runner/run-single-request.js#L352-L388","documentation":"Error \"Failed to parse GraphQL variables: ${err.message}\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-cli/src/runner/run-single-request.js:370 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the GraphQL variables JSON syntax (quotes, commas, braces).","Validate the variables block with a JSON parser before running."],"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"}