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

400 Bad Request: Input should be a valid dictionary #36

Open
danmigdev opened this issue Dec 17, 2024 · 4 comments
Open

400 Bad Request: Input should be a valid dictionary #36

danmigdev opened this issue Dec 17, 2024 · 4 comments

Comments

@danmigdev
Copy link

Hi! When I try to invoke this method messageWithCat with a simpe String parameter I get the error 400 Bad Request: Input should be a valid dictionary

@matteobaccan
Copy link
Owner

Which version of Cheshire Cat are you using?

@danmigdev
Copy link
Author

danmigdev commented Dec 21, 2024

Latest version 1.7.1 with client 1.6.1. I've tried to generate an updated client but I've got some more blocking errors: in ChunkOverlap I get "error: cannot find symbol" on ModelNull

@matteobaccan
Copy link
Owner

I have fixed the problems with generating the API for version 1.7.1. I made some modifications to the original JSON file.
Please try the new version.

@danmigdev
Copy link
Author

Thanks, it now does compile but I get errors when using an input string like "AAAA"

it.baccan.cheshirecat.ApiException: {"error":[{"type":"dict_type","loc":["body"],"msg":"Input should be a valid dictionary","input":"AAAA"}]}

and this other error when using "\r\n"

it.baccan.cheshirecat.ApiException: {"error":[{"type":"json_invalid","loc":["body",1],"msg":"JSON decode error","input":{},"ctx":{"error":"Invalid control character at"}}]}

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

2 participants