Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in thread "main" java.lang.NullPointerException #61

Closed
tanu3195 opened this issue Sep 28, 2022 · 11 comments
Closed

Exception in thread "main" java.lang.NullPointerException #61

tanu3195 opened this issue Sep 28, 2022 · 11 comments
Assignees
Labels

Comments

@tanu3195
Copy link

09:40:27.754 [main] INFO com.ullink.slack.simpleslackapi.impl.SlackWebSocketSessionImpl - connecting to slack
Exception in thread "main" java.lang.NullPointerException
at com.ullink.slack.simpleslackapi.impl.SlackJSONSessionStatusParser.parse(SlackJSONSessionStatusParser.java:71)
at com.ullink.slack.simpleslackapi.impl.SlackWebSocketSessionImpl.connectImpl(SlackWebSocketSessionImpl.java:335)
at com.ullink.slack.simpleslackapi.impl.SlackWebSocketSessionImpl.connect(SlackWebSocketSessionImpl.java:294)
at com.gatehill.corebot.frontend.slack.chat.SlackSessionServiceImpl$session$2.invoke(SlackSessionServiceImpl.kt:32)
at com.gatehill.corebot.frontend.slack.chat.SlackSessionServiceImpl$session$2.invoke(SlackSessionServiceImpl.kt:20)
at kotlin.SynchronizedLazyImpl.getValue(Lazy.kt:130)
at com.gatehill.corebot.frontend.slack.chat.SlackSessionServiceImpl.getSession(SlackSessionServiceImpl.kt)
at com.gatehill.corebot.frontend.slack.chat.SlackChatServiceImpl.listenForEvents(SlackChatServiceImpl.kt:42)
at com.gatehill.corebot.bot.Bot.start(Bot.kt:22)
at com.gatehill.corebot.bot.MainKt.runBot(Main.kt:54)
at com.gatehill.corebot.bot.MainKt.main(Main.kt:33)

@tanu3195
Copy link
Author

Hi,

We started facing the issue since today morning where we are unable to connect to slack from the container and its keep on exiting.

@ThomasADavis
Copy link

ThomasADavis commented Sep 28, 2022

The Slack API Corebot was using has been changed.

https://api.slack.com/changelog/2021-10-rtm-start-to-stop

@MichaelKueller
Copy link

We are facing the same issue

@PedroJurado
Copy link

Problem lies in the library that this project uses to connect to slack, so I am afraid they need to upgrade first this other project before is fixed here.

Itiviti/simple-slack-api#299

@tanu3195
Copy link
Author

tanu3195 commented Oct 4, 2022

Hi All, Please do update with the solution if anyone finds. We will also keep the thread updated with our workarounds.

@jfabella
Copy link

jfabella commented Oct 5, 2022

Hi All, Saw that the library was fixed, anyone can update this project to use the latest library?

Problem lies in the library that this project uses to connect to slack, so I am afraid they need to upgrade first this other project before is fixed here.

Itiviti/simple-slack-api#299

@PedroJurado
Copy link

Tried to compile corebot with the last version of simple-slack-api but it fails in the part upgraded, I have 0 knowledge about Kotlin so I am stuck here....

@jfabella
Copy link

jfabella commented Oct 6, 2022

Tried to compile corebot with the last version of simple-slack-api but it fails in the part upgraded, I have 0 knowledge about Kotlin so I am stuck here....

I can see the same here #62 , looks like something else got broken it was a big jump from 0.3.1 to latest version.

@outofcoffee
Copy link
Owner

Hi folks 👋 Working on the library upgrade in #63

@outofcoffee outofcoffee added the bug label Oct 6, 2022
@outofcoffee outofcoffee self-assigned this Oct 6, 2022
@outofcoffee
Copy link
Owner

OK, after a bunch of updates (#65, #67, #68), the updated Slack API library has been released in v1.4.0.

Images are up on Docker Hub: https://hub.docker.com/r/outofcoffee/corebot/tags

Please do let me know if this has fixed the issue.

@outofcoffee
Copy link
Owner

Hi folks, thank you for all the feedback!

I'm going to close this issue as resolved, but please do raise a new issue if there are any other problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants