Robyn: Robyn server hangs while serving rasa model
Bug Description
Sample code
from robyn import Robyn
from rasa.core.agent import Agent
import uuid6
app = Robyn(__file__)
agent = Agent.load("./models/20230818-091151.tar.gz")
@app.get("/")
async def h(request):
return "Hello, world!"
@app.post("/chat")
async def chat(request):
print("chat")
return await agent.handle_text("Hi", sender_id=uuid6.uuid7().hex)
app.start(port=8080)
when i run the above server stuck processing the request even tried via post man as you can see it stuck in the logs as slots values and does not process —logs– chat DEBUG:rasa.core.lock_store:Issuing ticket for conversation ‘018a0a6363af764ba677c15c824fbdb8’. DEBUG:rasa.core.lock_store:Acquiring lock for conversation ‘018a0a6363af764ba677c15c824fbdb8’. DEBUG:rasa.core.lock_store:Acquired lock for conversation ‘018a0a6363af764ba677c15c824fbdb8’. DEBUG:rasa.core.tracker_store:Could not find tracker for conversation ID ‘018a0a6363af764ba677c15c824fbdb8’. DEBUG:rasa.core.processor:Starting a new session for conversation ID ‘018a0a6363af764ba677c15c824fbdb8’. DEBUG:rasa.core.processor:Policy prediction ended with events ‘[]’. DEBUG:rasa.core.processor:Action ‘action_session_start’ ended with events ‘[<rasa.shared.core.events.SessionStarted object at 0x7ffa23ff6be0>, ActionExecuted(action: action_listen, policy: None, confidence: None)]’. DEBUG:rasa.core.processor:Current slot values: doc_url: None document: None video: None audio: None image: None kairon_action_response: None bot: 64de24d9fad53e0694a04261 session_started_metadata: None
Steps to Reproduce
No response
Your operating system
Linux
Your Python version (python --version)
3.8
Your Robyn version
latest
Additional Info
No response
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 15 (8 by maintainers)
still open, will work on a single process, but need to fix the multiprocess issue
Hey @sfahad1414 👋
I did but I am unable to replicate the bug. Can you please create an isolated environment so that I can reproduce this bug?
Hey @sfahad1414 👋
I didn’t enough time in the past two days. I will get back to you by Friday 😄