question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SocketIO Response With 200 Ok, But can't return any data.

See original GitHub issue

Hello, I have configured my Rasa-NLU and Core, I added everything, everything works well except some small issues.

I’ve posted Rasa Forum but no one returns. This issue has to be solved asap.

input_channel = SocketIOInput( # event name for messages sent from the user user_message_evt="user_uttered", # event name for messages sent from the bot bot_message_evt="message", # socket.io namespace to use for the messages namespace = "/" ) s = agent.handle_channels([input_channel], 5004, serve_forever=True)

This is just a tutorial which I watch and researched. I have two major problems in it.

I use Socket IO when I write Core Python but I don’t know how Rasa use this.

1-) I requested socket.emit with Javascript with given events, it posts 200 OK, but nothing returns, even data I sent. How can I see response from my model? Like Slack Bot entegration? 2-) When I send it as a JSON , it works, but when I send to string, it will raise error from rasa/socketio. So where should I handle data after user enter their string?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
paulaWesselmanncommented, May 3, 2019

I’m sorry I don’t think I understand your setup. I guess you have something as described here? Does your bot work when you run it through the command line not using any external channels? python3 -m rasa_core_sdk.endpoint --actions actions and in a new window: python3 -m rasa_core.run -d models/current/dialogue -u models/current/nlu --endpoints endpoints.yml (You’ll have to change the the model paths depending on where you have your trained models saved)

0reactions
stale[bot]commented, Aug 15, 2019

This issue has been automatically closed due to inactivity. Please create a new issue if you need more help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting connection issues | Socket.IO
200 OK : when in HTTP long-polling mode ( GET for reading, POST for writing) 400 Bad Request : when something went wrong....
Read more >
Websocket returns status 200 instead of 101 (flask socket.io)
the websocket handshake stops working and gives status 200 instead. WebSocket connection to 'ws://example.com/socket.io/?EIO=3&transport=websocket&sid= ...
Read more >
Everything you need to know about Socket.IO - Ably Realtime
Explore the Socket.IO event-driven JavaScript library: its main use cases, how to get started with it, and its limitations.
Read more >
How To Create a Real-Time App with Socket.IO, Angular, and ...
This protocol goes beyond the typical HTTP request and response paradigm. With WebSockets, the server may send data to a client without the ......
Read more >
WebSockets for fun and profit - Stack Overflow Blog
To address this need, WebSocket, a popular communication protocol finalized in 2011, enables websites to send and receive data without delay ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found