{"record":{"id":"9d36b7c27679f37d","repo":"ToolJet/ToolJet","slug":"missing-required-query-parameter","errorCode":null,"errorMessage":"Missing required query parameter","messagePattern":"Missing required query parameter","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"marketplace/plugins/couchbase/lib/query_operations.ts","lineNumber":114,"sourceCode":"    },\n  });\n  if (!response.ok) {\n    throw new Error(`Failed to delete document: ${response.statusText}`);\n  }\n  await response.json().catch((error) => {\n    if (!response.ok) {\n      throw error;\n    }\n  });\n  return 'Deleted successfully';\n}\n\n// Query with SQL++ query and parameters\nexport async function queryDocument(options: QueryOptions, sourceOptions: SourceOptions) {\n  const { query, args, query_options } = options;\n  const { username, password, data_api_url } = sourceOptions;\n  if (!query) {\n    throw new Error('Missing required query parameter');\n  }\n\n  let parsedArgs;\n  if (args) {\n    parsedArgs = typeof args === 'string' ? JSON.parse(args) : args;\n  }\n\n  let parsedQueryOptions;\n  if (query_options) {\n    parsedQueryOptions = typeof query_options === 'string' ? JSON.parse(query_options) : query_options;\n  }\n\n  // Build the query body with statement and all parameters\n  const queryBody = {\n    statement: query,\n    ...(parsedArgs ? parsedArgs : {}),\n    ...(parsedQueryOptions ? parsedQueryOptions : {}),\n  };","sourceCodeStart":96,"sourceCodeEnd":132,"githubUrl":"https://github.com/ToolJet/ToolJet/blob/20602a8e101f2e59686c9afde0d1402aac2c8871/marketplace/plugins/couchbase/lib/query_operations.ts#L96-L132","documentation":"Error \"Missing required query parameter\" thrown in ToolJet/ToolJet.","triggerScenarios":"N1QL query operation invoked without the required query string or bucket parameter.","commonSituations":"Defend by requiring the query parameter before calling the query service and failing fast otherwise.","solutions":["Provide the SQL++ statement in the query option.","Ensure the query option key is not empty or whitespace."],"exampleFix":"Set query to: SELECT * FROM `travel`.inventory.hotel LIMIT 10;","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"20602a8e101f2e59686c9afde0d1402aac2c8871","analyzedAt":"2026-08-13T05:58:54.221Z","schemaVersion":2},"datasetVersion":"2026-08-13T09:17:06.757Z"}