{"record":{"id":"42c1fcd033dc74ef","repo":"langgenius/dify","slug":"parameter-key-must-be-a-list-or-dict","errorCode":null,"errorMessage":"Parameter '${key}' must be a list or dict","messagePattern":"Parameter '(.+?)' must be a list or dict","errorType":"validation","errorClass":"ValidationError","httpStatus":null,"severity":"error","filePath":"sdks/nodejs-client/src/client/validation.ts","lineNumber":119,"sourceCode":"          `Parameter '${key}' exceeds maximum size of ${MAX_LIST_LENGTH} items`,\n        )\n      }\n    } else if (isRecord(value)) {\n      if (Object.keys(value).length > MAX_DICT_LENGTH) {\n        throw new ValidationError(\n          `Parameter '${key}' exceeds maximum size of ${MAX_DICT_LENGTH} items`,\n        )\n      }\n    }\n\n    if (key === 'user' && typeof value !== 'string') {\n      throw new ValidationError(`Parameter '${key}' must be a string`)\n    }\n    if ((key === 'page' || key === 'limit' || key === 'page_size') && !Number.isInteger(value)) {\n      throw new ValidationError(`Parameter '${key}' must be an integer`)\n    }\n    if (key === 'files' && !Array.isArray(value) && typeof value !== 'object') {\n      throw new ValidationError(`Parameter '${key}' must be a list or dict`)\n    }\n    if (key === 'rating' && value !== 'like' && value !== 'dislike') {\n      throw new ValidationError(`Parameter '${key}' must be 'like' or 'dislike'`)\n    }\n  })\n}\n","sourceCodeStart":101,"sourceCodeEnd":126,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/sdks/nodejs-client/src/client/validation.ts#L101-L126","documentation":"Error \"Parameter '${key}' must be a list or dict\" thrown in langgenius/dify.","triggerScenarios":"Thrown at sdks/nodejs-client/src/client/validation.ts:119 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ef8544b173fd6cd7a8e71df2cab576e52bebbfbc","analyzedAt":"2026-08-12T05:15:17.394Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}