{"record":{"id":"f599bc76c953aff2","repo":"serverless/serverless","slug":"invalid-config","errorCode":"INVALID_CONFIG","errorMessage":"error.message","messagePattern":"error\\.message","errorType":"validation","errorClass":"ServerlessError","httpStatus":null,"severity":"error","filePath":"packages/serverless/lib/plugins/aws/api-gateway-service-proxy/api-gateway/validate.js","lineNumber":14,"sourceCode":"import { ServerlessError, ServerlessErrorCodes } from '@serverless/util'\nimport _ from 'lodash'\nimport Joi from 'joi'\nimport schema from './schema.js'\n\nconst NOT_FOUND = -1\n\nconst validateModule = {\n  validateServiceProxies() {\n    const proxies = this.getAllServiceProxies()\n\n    const { error } = schema.validate(proxies)\n    if (error) {\n      throw new ServerlessError(\n        error.message,\n        ServerlessErrorCodes.general.INVALID_CONFIG,\n        { stack: false },\n      )\n    }\n\n    const corsPreflight = {}\n\n    const events = proxies.map((serviceProxy) => {\n      const serviceName = this.getServiceName(serviceProxy)\n      const http = serviceProxy[serviceName]\n      http.path = http.path.replace(/^\\//, '').replace(/\\/$/, '')\n      http.method = http.method.toLowerCase()\n      http.auth = {\n        authorizationType: http.authorizationType || 'NONE',\n      }\n\n      if (_.has(http, 'authorizerId')) {","sourceCodeStart":1,"sourceCodeEnd":32,"githubUrl":"https://github.com/serverless/serverless/blob/b9d7ea51c8cce57cff1207964b9b71123673081f/packages/serverless/lib/plugins/aws/api-gateway-service-proxy/api-gateway/validate.js#L1-L32","documentation":"Error \"error.message\" thrown in serverless/serverless.","triggerScenarios":"Thrown at packages/serverless/lib/plugins/aws/api-gateway-service-proxy/api-gateway/validate.js:14 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the validation error detail and correct the API Gateway service proxy event configuration accordingly."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b9d7ea51c8cce57cff1207964b9b71123673081f","analyzedAt":"2026-08-13T04:14:40.386Z","schemaVersion":2},"datasetVersion":"2026-08-13T09:17:06.757Z"}