Replies: 1 comment 1 reply
-
This is invalid json. Specifically this part:
I'm not sure if the quote after the L is intentional or not, but if it is, then it needs to be escaped: {
"status":"L\" .20240426164328 ",
"report_content":"+Q6Wuqp8FCqwApdu3QBX3zmqafBtFfPuyyCu5MVCkXABCC//==",
"report_datahora":"02/05/2024 08:56:12",
"performer_name":"Radiologist Test",
"realizador_crm":"40134",
"realizador_crm_uf":"RS",
"realizador_assinatura":null,
"revisor_nome":null,
"revisor_crm":null,
"revisor_crm_uf":null,
"revisor_assinatura":null
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I have a post route that receives a tlaudo class
This class has a field that receives base64 content
when the field comes with "//" fastapi truncates the body
json sent by client
{"status":"L" .20240426164328 ","report_content":"+Q6Wuqp8FCqwApdu3QBX3zmqafBtFfPuyyCu5MVCkXABCC//==","report_datahora":"02/05/2024 08:56:12","performer_name":"Radiologist Test","realizador_crm":"40134","realizador_crm_uf":"RS","realizador_assinatura":null,"revisor_nome":null,"revisor_crm": null,"revisor_crm_uf":null,"revisor_assinatura":null}
truncated json
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
report_conteudo\":\"+Q6Wuqp8FCqwApdu3QBX3zmqafBtFfPuyyCu5MVCkXABCC'
{"status":"L" .20240426164328 ","report_conteudo":"+Q6Wuqp8FCqwApdu3QBX3zmqafBtFfPuyyCu5MVCkXABCC
INFO: 127.0.0.1:51661 - "POST /wisedoc/laudos/integracao HTTP/1.1" 422 Unprocessable Entity
Operating System
Windows
Operating System Details
in Linux it also happens
FastAPI Version
0.110.2
Pydantic Version
2.7.0
Python Version
Python 3.12.1
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions