What is “406-Not Acceptable Response” in HTTP?

后端 未结 9 2051
礼貌的吻别
礼貌的吻别 2020-11-22 08:20

In my Ruby on Rails application I tried to upload an image through the POSTMAN REST client in Base64 format. When I POST the image I am getting a 406 Not Acceptable Resp

9条回答
  •  半阙折子戏
    2020-11-22 08:51

    You can also receive a 406 response when invalid cookies are stored or referenced in the browser - for example, when running a Rails server in Dev mode locally.

    If you happened to run two different projects on the same port, the browser might reference a cookie from a different localhost session.

    This has happened to me...tripped me up for a minute. Looking in browser > Developer Mode > Network showed it.

提交回复
热议问题