Hey,
I am trying to send data between my phone(debugging mode via usb) and my backend server running on the computer. I managed to send GET requests without an error, but if i send a POST request the body gets lost. Why does this happen and how can i fix this?
##RequestHeader
accept: application/json, text/plain, */*
allow-anonymous: true
content-type: application/json
referer: http://tauri.localhost/
sec-ch-ua: "Android WebView";v="131", "Chromium";v="131", "Not_A Brand";v="24"
sec-ch-ua-mobile: ?1
sec-ch-ua-platform: "Android"
user-agent: Mozilla/5.0 (Linux; Android 13; Nokia G20 Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/131.0.6778.260 Mobile Safari/537.36
##RequestBody
{
"username": "[email protected]",
"password": "TESTtestTEST"
}
##ResponseHeader
access-control-allow-origin: *
client-via: shouldInterceptRequest
connection: close
content-length: 289
content-type: application/problem+json
date: Wed, 15 Jan 2025 10:08:44 GMT
server: Kestrel
transfer-encoding: chunked
x-rate-limit-limit: 10s
x-rate-limit-remaining: 34
x-rate-limit-reset: 2025-01-15T10:08:55.7371548Z
##ResponseBody
{
"type": "https://tools.ietf.org/html/rfc9110#section-15.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"errors": {
"": [
"A non-empty request body is required."
],
"model": [
"The model field is required."
]
},
"traceId": "00-99636c3368055cfc0719893f46bddb87-44c7fc99f016c3f5-00"
}
Thank you for your help!