ToolJet/ToolJet · error · Error
Missing required query parameter
Error message
Missing required query parameter
What it means
Error "Missing required query parameter" thrown in ToolJet/ToolJet.
Source
Thrown at marketplace/plugins/couchbase/lib/query_operations.ts:114
},
});
if (!response.ok) {
throw new Error(`Failed to delete document: ${response.statusText}`);
}
await response.json().catch((error) => {
if (!response.ok) {
throw error;
}
});
return 'Deleted successfully';
}
// Query with SQL++ query and parameters
export async function queryDocument(options: QueryOptions, sourceOptions: SourceOptions) {
const { query, args, query_options } = options;
const { username, password, data_api_url } = sourceOptions;
if (!query) {
throw new Error('Missing required query parameter');
}
let parsedArgs;
if (args) {
parsedArgs = typeof args === 'string' ? JSON.parse(args) : args;
}
let parsedQueryOptions;
if (query_options) {
parsedQueryOptions = typeof query_options === 'string' ? JSON.parse(query_options) : query_options;
}
// Build the query body with statement and all parameters
const queryBody = {
statement: query,
...(parsedArgs ? parsedArgs : {}),
...(parsedQueryOptions ? parsedQueryOptions : {}),
};View on GitHub (pinned to 20602a8e10)
Solutions
- Provide the SQL++ statement in the query option.
- Ensure the query option key is not empty or whitespace.
Example fix
Set query to: SELECT * FROM `travel`.inventory.hotel LIMIT 10;
When it happens
Trigger: N1QL query operation invoked without the required query string or bucket parameter.
Common situations: Defend by requiring the query parameter before calling the query service and failing fast otherwise.
AI-assisted analysis of ToolJet/ToolJet@20602a8e10 (2026-08-13).
Data as JSON: /api/errors/9d36b7c27679f37d.
Report an issue: GitHub.