0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

error=invalid character 'o' looking for beginning of value, internal=invalid character 'o' looking for beginning of value

Posted at

原因

json形式のデータを作成したものの、そのデータを直接引数に渡したりすると表示されるエラーっぽいです。
僕の場合は、POSTメソッドでbodyにjson形式のデータを直接渡した結果、このエラーを喰らいました。

解決法

JSON.stringify()の中にjson形式のデータを入れるだけでした。
無事にjson形式のデータがPOSTメソッドで送ることができました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?