You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SkillDialog won't work out of the box for non expected-replies scenarios.
To Reproduce
Steps to reproduce the behavior:
Set up a root bot using skill dialog and a skill bot
Run both bots and initiate the SkillDialog
When the skill first comes back to the parent an error like the following should arise:
File "..path-to-botbuilder/botbuilder-python/libraries/botbuilder-dialogs/botbuilder/dialogs/skills/skill_dialog.py", line 213, in _send_to_skill
if not 200 <= response.status <= 299:
AttributeError: 'NoneType' object has no attribute 'status'
Expected behavior
The response get back to the parent without any problems
Workaround
If the skill bot is modified to always send some content in every successful response at the route handler level, the scenario should work.
Example on how to do this for an aiohttp skill bot:
#This is how a typical message handler method could look likeasyncdefmessages(req: Request) ->Response:
# Main bot message handler.if"application/json"inreq.headers["Content-Type"]:
body=awaitreq.json()
else:
returnResponse(status=415)
activity=Activity().deserialize(body)
auth_header=req.headers["Authorization"] if"Authorization"inreq.headerselse""response=awaitADAPTER.process_activity(activity, auth_header, BOT.on_turn)
ifresponse:
returnjson_response(data=response.body, status=response.status)
# THE FIX IS IN THE LINE BELOWreturnResponse(status=201, body='{"foo":"bar"}'.encode("utf-8"))
Alternative Workaround: use expected replies as delivery method in the parent bot (SkillDialog).
[bug]
The text was updated successfully, but these errors were encountered:
Version
4.8.0
Describe the bug
SkillDialog won't work out of the box for non expected-replies scenarios.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The response get back to the parent without any problems
Workaround
If the skill bot is modified to always send some content in every successful response at the route handler level, the scenario should work.
Example on how to do this for an aiohttp skill bot:
Alternative Workaround: use expected replies as delivery method in the parent bot (SkillDialog).
[bug]
The text was updated successfully, but these errors were encountered: