golang invalid character 'b' looking for beginning of value

后端 未结 4 1915
半阙折子戏
半阙折子戏 2021-01-04 07:35

I am trying to post a json with xml message inside it. However it returns

invalid character \'b\' looking for beginning of value

I think the possible reason

4条回答
  •  清歌不尽
    2021-01-04 08:05

    Please Check the request header first. Check the Content-Type. In my cases, it's not an application/JSON. It's application/x-www-form-urlencoded.

提交回复
热议问题