Rasa nlu服务器故障 [英] Rasa nlu server failure

查看:455
本文介绍了Rasa nlu服务器故障的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过在cmd中键入以下命令来启动rasa服务器:

I started the rasa server by typing this command in cmd:

  rasa run --enable-api -m models/(my_model).tar.gz --cors "*" --debug

我将此命令放在另一个cmd中:

I put this command in another cmd:

  curl -X POST localhost:5005/model/parse -d '{"text":"hello"}'

那之后我得到了这个错误:

After that I got this error:

  {"version":"1.2.2","status":"failure","message":"An unexpected error occurred. Error: Failed when parsing body as json","reason":"ParsingError","details":{},"help":null,"code":500}

有帮助吗?如何将Rasa与Node.js集成?

Any help? How can I integrate Rasa with Node.js?

推荐答案

没有方法类型的简单卷曲对我有用:

Simple curl without method type worked for me:

curl localhost:5005/model/parse -d '{"text":"hello"}'

这篇关于Rasa nlu服务器故障的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆