You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortuntly this does not work.
When I run the cpp executable I get the following error message:
{"detail":[{"type":"json_invalid","loc":["body",0],"msg":"JSON decode error","input":{},"ctx":{"error":"Expecting value"}}]}
Possible Fix
No response
Where did you get it from?
GitHub (branch e.g. master)
Additional Context/Your Environment
OS: Arch Linux
Version:
The text was updated successfully, but these errors were encountered:
Description
Please, I want to know what is the correct way to send JSON data to fastAPI app?
I tried many many things, but nothing seems to work...
Example/How to Reproduce
For example:
Python part (server side)
The JSON payload data has this structure
{
"vorname": "string",
"nachname": "string",
"alter": 0,
"gewicht": 0
}
CPP part (client):
Unfortuntly this does not work.
When I run the cpp executable I get the following error message:
{"detail":[{"type":"json_invalid","loc":["body",0],"msg":"JSON decode error","input":{},"ctx":{"error":"Expecting value"}}]}
Possible Fix
No response
Where did you get it from?
GitHub (branch e.g. master)
Additional Context/Your Environment
The text was updated successfully, but these errors were encountered: