yetibot / yetibot

🤖 Extreme chatops bot for Slack, Discord, Mattermost, IRC 🔧 New contributors welcome 🏗
https://yetibot.com
Eclipse Public License 1.0
349 stars 62 forks source link

debug json parsing errors on valid json #620

Closed devth closed 7 years ago

devth commented 7 years ago

e.g.

!json http://www.earthcam.com/cams/common/gethofitems.php?hofsource=com&tm=ecn&camera=nationalmall&start=43&length=21&ec_favorite=0&cdn=0

:cop: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('' (code 65279 / 0xfeff)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: java.io.StringReader@70c0b38a; line: 1, column: 2] :cop:
devth commented 7 years ago

Fixed by https://github.com/devth/yetibot/pull/647