Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'body.content': { message: "'content' is required", value: undefined } #8

Open
viprocket1 opened this issue Aug 19, 2023 · 0 comments

Comments

@viprocket1
Copy link

i was able to use the OpenAPI.json specs in my tool. and i was able to invoke the plugin chain on request. i keep getting this error tho on the plugin side.

Caught Validation Error for /files: {
  'body.content': { message: "'content' is required", value: undefined }
} ValidateError
    at getValidatedArgs (/home/runner/chatgpt-plugin-1/src/generated/routes.ts:211:19)
    at FileController_writeFile (/home/runner/chatgpt-plugin-1/src/generated/routes.ts:110:33)
    at Layer.handle (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/route.js:144:13)
    at Route.dispatch (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/route.js:114:3)
    at Layer.handle (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/layer.js:95:5)
    at <anonymous> (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/index.js:284:15)
    at Function.process_params (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/index.js:346:12)
    at next (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/index.js:280:10)
    at jsonParser (/home/runner/chatgpt-plugin-1/node_modules/body-parser/lib/types/json.js:119:7) {
  fields: {
    'body.content': { message: "'content' is required", value: undefined }
  },
  status: 400
}
PUT /files?env=Bash&path=%2Fe2b.txt 422 94 - 14.806 ms
Caught Validation Error for /files: {
  'body.content': { message: "'content' is required", value: undefined }
} ValidateError
    at getValidatedArgs (/home/runner/chatgpt-plugin-1/src/generated/routes.ts:211:19)
    at FileController_writeFile (/home/runner/chatgpt-plugin-1/src/generated/routes.ts:110:33)
    at Layer.handle (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/route.js:144:13)
    at Route.dispatch (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/route.js:114:3)
    at Layer.handle (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/layer.js:95:5)
    at <anonymous> (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/index.js:284:15)
    at Function.process_params (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/index.js:346:12)
    at next (/home/runner/chatgpt-plugin-1/node_modules/express/lib/router/index.js:280:10)
    at jsonParser (/home/runner/chatgpt-plugin-1/node_modules/body-parser/lib/types/json.js:119:7) {
  fields: {
    'body.content': { message: "'content' is required", value: undefined }
  },
  status: 400
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant