Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

接收消息报错:用文档的测试用例可以调通,但是部署时报错 #154

Closed
swfinale opened this issue Feb 5, 2024 · 4 comments

Comments

@swfinale
Copy link

swfinale commented Feb 5, 2024

提bug前先检查以下是否已经执行

  • [ √] 我已更新了最新版本的代码
  • [ √] 我已经仔细地阅读了readme 文档
  • [ √] 我已在FAQ里查找了可能寻找的答案
  • [ √] 我已经尝试搜索过历史关闭issue寻找可能的答案

bug描述
设置自己编写的接口作为参数传入,应用启动成功,但是接收消息报错:Error occurred when trying to send Data to RecvdApi FetchError: request to http://localhost:8080/public/receive failed, reason: connect ECONNREFUSED 127.0.0.1:8080
image

用文档里的测试用例可以成功返回
image

接口编写如下:
image

提供有用的信息

提供任何代码片段/日志/输出/截图 以便于帮助快速定位问题

@leinad59
Copy link
Contributor

leinad59 commented Feb 5, 2024

可能是容器内外网络不通,尝试启动容器时使用–net=host

@swfinale swfinale closed this as completed Feb 6, 2024
@swfinale
Copy link
Author

swfinale commented Feb 6, 2024

确认是容器网络不通,用host模式启动解决

@leinad59
Copy link
Contributor

leinad59 commented Feb 6, 2024

@danni-cool 可以加到FAQ😄

@yingling686
Copy link

我遇到了同样的问题,但是目前以host模式启动也没有解决掉这个情况,能不能帮我解释一下子 @danni-cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants