Closed technicat closed 4 months ago
may be same problem on sharkey
POST https://wizard.casa/api/v1/statuses ➡️ 🏷️ 'Accept': 'application/json' ➡️ 🏷️ 'User-Agent': 'TootSDK' ➡️ 🏷️ 'Authorization': 'Bearer LrDllJAN3rPOuhgwsbQZBHK14nc' ➡️ 🏷️ 'Content-Type': 'multipart/form-data; boundary=FEEEBD09-1A9D-41EA-AD55-F6806412B42A' ➡️ 💿 --FEEEBD09-1A9D-41EA-AD55-F6806412B42A
Content-Disposition: form-data; name="status"
test
--FEEEBD09-1A9D-41EA-AD55-F6806412B42A
Content-Disposition: form-data; name="visibility"
public
--FEEEBD09-1A9D-41EA-AD55-F6806412B42A
Content-Disposition: form-data; name="language"
en
--FEEEBD09-1A9D-41EA-AD55-F6806412B42A--
⬅️ 🌍 https://wizard.casa/api/v1/statuses
⬅️ 🚦 HTTP 400
⬅️ 🏷️ 'Content-Length': '22'
⬅️ 🏷️ 'content-security-policy': 'base-uri 'self'; connect-src 'self'; default-src 'none'; frame-ancestors 'none'; img-src 'self' data:; manifest-src 'self'; media-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self''
⬅️ 🏷️ 'Date': 'Mon, 06 May 2024 22:05:46 GMT'
⬅️ 🏷️ 'Content-Type': 'text/plain; charset=utf-8'
⬅️ 🏷️ 'Strict-Transport-Security': 'max-age=63072000'
⬅️ 🏷️ 'access-control-expose-headers': 'content-type'
⬅️ 🏷️ 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'
⬅️ 🏷️ 'x-content-type-options': 'nosniff'
⬅️ 🏷️ 'Server': 'Caddy'
⬅️ 💿 missing field status
HTTP 400 bad request Undecodable
I think this is because TootSDK is using multipart to post and mitra is expecting application/json