Discord > Alerts > Twitter Alerts = Console Error

PhantomBot Version: 3.0.0 (Revision: fcc08b51)
Operating System: Windows 10 64bit
Java Version:1.8.0_231
Browser and Version (for Panel Support): Version 78.0.3904.70 (Official Build) (64-bit)
Stock PhantomBot: Yes

Twitter Tweets are not posting into Discord Channel anymore, not sure why.
I did try doing a fresh install of the bot, but still get the same issue each time.

Strangely enough, it posts to the Twitch Chat just fine, it’s only broken for Discord it seems.
It worked before! See Console Log Below, feel free to request any additional information needed.

[10-30-2019 @ 21:10:19.564 EST] [ERROR] [readJsonFromUrl()@GoogleURLShortenerAPIv1.java:121] GoogleURLShortenerAPIv1::readJsonFromUrl::Exception: A JSONObject text must begin with ‘{’ at 1 [character 2 line 1]
[10-30-2019 @ 21:10:19.571 EST] [CHAT] /me [Twitter Feed From @sowhoyou] another api test https://youtu.be/EH6n9PNyyBY [SoWho on Twitter: "another api test https://t.co/rsZrVHVlFv"]
[10-30-2019 @ 21:10:19.589 EST] [ERROR] [init.js:325] Error with Event Handler [twitter] Script [./discord/handlers/twit > init.js:839] Exception [JavaException: java.lang.NullPointerException: null]

1 Like

That seems to get things working again, thanks!

But just so you know, it does still give an error, but at least it posts now.
Adding the error that’s given below, just incase you’re not aware of it with that “workaround”.

[10-30-2019 @ 23:10:19.810 EST] [ERROR] [readJsonFromUrl()@GoogleURLShortenerAPIv1.java:121] GoogleURLShortenerAPIv1::readJsonFromUrl::Exception: A JSONObject text must begin with ‘{’ at 1 [character 2 line 1]
[10-30-2019 @ 23:10:19.818 EST] [CHAT] /me [Twitter Feed From @sowhoyou] testing - 3rd times a charm https://www.youtube.com/watch?v=EH6n9PNyyBY [https://twitter.com/sowhoyou/status/1189756234322317312]
[10-30-2019 @ 23:10:19.834 EST] [DISCORD] [#twitter] [EMBED]

But yeah, thanks for the quick reply, love the bot and all the hard work!