Comments (3)
"No web socket url returned by Slack. " is the returned in console
It seems like its unable to startRTM And WebSocketConnection ...
I have created slackbot app and added slack token in application.properties
Am i missing something here?
from jbot.
No, that should be it. Just paste the token in application.properties file and make sure you have slack in active profiles like below:
# jbot
spring.profiles.active=slack
spring.jackson.property-naming-strategy=SNAKE_CASE
logging.level.me.ramswaroop=DEBUG
server.port=8080
# slack integrations
slackApi=https://slack.com/api
slackBotToken=<paste your slack bot token> # <-------------- your token here
from jbot.
I run into the same Issue, cloned, didn't make any changes except copying the bot token to the application.properties and removing the facebook profile (only slack is active).
The App seems running and in the Log there is one Error No web socket url returned by Slack.
The Bot doesn't seem to react to any messages (or anything as far as I can tell). The Bot token scopes are channels:history, channels:join, chat:write, im:read, im:write, reactions:read, reactions:write
.
What I expected to happen is that I run the sample application and having the bot react to direct messages and to messages in the channel the bot is in that are in the form of "ab12ab" (as the javadoc on onReceiveMessage suggests). I don't see any activity in Slack or the log.
2021-02-07 17:34:55.510 INFO 4181 --- [ main] example.jbot.JBotApplication : Starting JBotApplication on Philipps-MBP with PID 4181 (/Users/pseeger/git/jbot/jbot-example/target/classes started by pseeger in /Users/pseeger/git/jbot)
2021-02-07 17:34:55.513 INFO 4181 --- [ main] example.jbot.JBotApplication : The following profiles are active: slack
2021-02-07 17:34:55.551 INFO 4181 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3feb2dda: startup date [Sun Feb 07 17:34:55 CET 2021]; root of context hierarchy
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/Users/pseeger/.m2/repository/org/springframework/spring-core/4.3.2.RELEASE/spring-core-4.3.2.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2021-02-07 17:34:56.245 INFO 4181 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2021-02-07 17:34:56.253 INFO 4181 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat
2021-02-07 17:34:56.254 INFO 4181 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.4
2021-02-07 17:34:56.300 INFO 4181 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-02-07 17:34:56.300 INFO 4181 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 753 ms
2021-02-07 17:34:56.455 INFO 4181 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2021-02-07 17:34:56.461 INFO 4181 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2021-02-07 17:34:56.462 INFO 4181 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2021-02-07 17:34:56.462 INFO 4181 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2021-02-07 17:34:56.462 INFO 4181 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2021-02-07 17:34:56.508 INFO 4181 --- [ main] m.r.j.c.c.c.DefaultConfiguration : There are no any rest template beans defined, creating default rest template...
2021-02-07 17:34:57.298 ERROR 4181 --- [ main] me.ramswaroop.jbot.core.slack.Bot : No web socket url returned by Slack.
2021-02-07 17:34:57.585 INFO 4181 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3feb2dda: startup date [Sun Feb 07 17:34:55 CET 2021]; root of context hierarchy
2021-02-07 17:34:57.610 INFO 4181 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/slash-command],methods=[POST],consumes=[application/x-www-form-urlencoded]}" onto public me.ramswaroop.jbot.core.slack.models.RichMessage example.jbot.slack.SlackSlashCommand.onReceiveSlashCommand(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)
2021-02-07 17:34:57.611 INFO 4181 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2021-02-07 17:34:57.612 INFO 4181 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2021-02-07 17:34:57.628 INFO 4181 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2021-02-07 17:34:57.628 INFO 4181 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2021-02-07 17:34:57.650 INFO 4181 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2021-02-07 17:34:57.783 INFO 4181 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2021-02-07 17:34:57.811 INFO 4181 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2021-02-07 17:34:57.814 INFO 4181 --- [ main] example.jbot.JBotApplication : Started JBotApplication in 2.585 seconds (JVM running for 3.119)
from jbot.
Related Issues (20)
- Is there any guidance on how to use this for AWS Lambda? HOT 1
- Unescape text sent from JBot
- failed with the error "http_client_error" HOT 1
- /webhook is not exposed HOT 3
- jbot-example - SlackBot class Conversion bug HOT 1
- Websocket session closing HOT 4
- not working with if bot is created using slack application
- Slackbot is down with java.lang.IllegalStateException: Message will not be sent because the WebSocket session has been closed HOT 11
- Error while extracting response for type [class me.ramswaroop.jbot.core.slack.models.Event]
- Not able to post replies HOT 1
- Persistent Menu
- Simple menu with slackBot
- How to get the email id of an user who is interacting with the bot in reply to slack?
- Recently slack bots using RTM api are not working and stops responding. An issue is raised to slack but no resolution yet since two weeks. Can you help with an example of slack socket mode app with spring boot? HOT 1
- Schedule Meeting time accepts any string. Needs time validation
- Chatbot is not working in your page HOT 1
- How to use jbot in a standalone application without spring boot
- Any interest in a PR that will bump to SpringBoot v2.7.6? HOT 3
- Reply in thread feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jbot.