jkyberneees / fastify-gateway

A Node.js API gateway that just works!
https://www.npmjs.com/package/k-fastify-gateway
MIT License
107 stars 14 forks source link

FST_ERR_CTP_INVALID_MEDIA_TYPE: Unsupported Media Type: multipart/form-data; boundary=----WebKitFormBoundaryDtgoTu7ABM7JcOnz #60

Open gigabytejayesh opened 4 years ago

gigabytejayesh commented 4 years ago

While accessing http://127.0.0.1:8080/{abc} POST route with request.content-type = 'multipart/form-data'

Port Exposed: 8080 POST /api/-------------route--------------- HTTP/1.1 Host: 127.0.0.1:8080 Connection: keep-alive Content-Length: 412 Accept: application/json, text/plain, / enctype: multipart/form-data User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36 Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryAjpQdkhEmREOaAiB Origin: http://127.0.0.1:8080 Sec-Fetch-Site: same-origin Sec-Fetch-Mode: cors Referer: http://127.0.0.1:8080/-route- Accept-Encoding: gzip, deflate, br Accept-Language: en-GB,en-US;q=0.9,en;q=0.8 Cookie: ------------cookie----------

Cause error with status code: 415 Unsupported Media Type

FST_ERR_CTP_INVALID_MEDIA_TYPE: Unsupported Media Type: multipart/form-data; boundary=----WebKitFormBoundaryDtgoTu7ABM7JcOnz