{"record":{"id":"b54871b7b6b748fb","repo":"paperclipai/paperclip","slug":"unsupported-query-parameter-unsupportedqueryparam","errorCode":null,"errorMessage":"Unsupported query parameter${unsupportedQueryParams.length === 1 ? \"\" : \"s\"}: ${unsupportedQueryParams.join(\", \")}","messagePattern":"Unsupported query parameter(.+?): (.+?)","errorType":"http","errorClass":null,"httpStatus":400,"severity":"error","filePath":"server/src/routes/agents.ts","lineNumber":3157,"sourceCode":"                message: `Environment variables with missing secret bindings were skipped: ${[...missingKeys].join(\", \")}.`,\n                hint: \"Re-save the environment's variables to restore the secret binding, then test again.\",\n              });\n            }\n            const resolvableEnvironmentEnv = Object.fromEntries(\n              Object.entries(environmentEnv).filter(([key]) => !missingKeys.has(key)),\n            );\n            const environmentEnvResolution = await secretsSvc.resolveEnvBindings(\n              companyId,\n              resolvableEnvironmentEnv,\n              environmentSecretContext,\n            );\n            if (Object.keys(environmentEnvResolution.env).length > 0) {\n              effectiveAdapterConfig = {\n                ...runtimeAdapterConfig,\n                env: {\n                  ...environmentEnvResolution.env,\n                  ...parseObject(runtimeAdapterConfig.env),\n                },\n              };\n            }\n          }\n        }\n\n        // If the caller explicitly selected an environment, never fall back to\n        // probing the host when we couldn't resolve that environment's\n        // execution target. Surface the diagnostic checks instead.\n        if (requestedEnvironmentId && !executionTarget && fallbackChecks.length > 0) {\n          const combinedChecks = [...fallbackChecks, ...environmentEnvChecks];\n          const status: AdapterEnvironmentTestResult[\"status\"] = combinedChecks.some((c) => c.level === \"error\")\n            ? \"fail\"\n            : combinedChecks.some((c) => c.level === \"warn\")\n              ? \"warn\"\n              : \"pass\";\n          if (status === \"fail\") releaseStatus = \"failed\";\n          const synthesized: AdapterEnvironmentTestResult = {\n            adapterType: type,","sourceCodeStart":3139,"sourceCodeEnd":3175,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/agents.ts#L3139-L3175","documentation":"Strict query contract on GET /companies/:companyId/agents: the endpoint accepts no query parameters, but the request included some (sorted and listed in the message). The route returns 400 to surface mistaken filtering assumptions early instead of silently ignoring them.","triggerScenarios":"Thrown at server/src/routes/agents.ts:2746 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the unsupported query parameters from the request and retry."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}