8000 bug: 网关HTTP响应一直处于pending状态 · Issue #230 · eolinker/apinto · GitHub
[go: up one dir, main page]

Skip to content

bug: 网关HTTP响应一直处于pending状态 #230

Closed

Description

@caijiatao

Current Behavior

接口响应报文 Content-length < 2kb 的时候能正常返回,超过2kb的时候一直处于pending状态

Expected Behavior

接口都能够正常响应,不会处于pending状态

Error Logs

没有错误日志

Steps to Reproduce

  1. Run apinto via the Docker image.
  2. Create a Route with the Admin APl.
  3. Postman send API request.

Environment

Activity

  1. Dot-Liu commented on Nov 21, 2025

    @Dot-Liu
    Collaborator
    Image 麻烦提供更加详细的信息,我这边无法复现
  2. caijiatao commented on Nov 21, 2025

    @caijiatao
    Author
    Image 这个是后端的正常响应。

    这个是通过apinto转发后一直处于pending 状态

    Image

    dashboard 对应的配置

    Image
  3. Dot-Liu commented on Nov 21, 2025

    @Dot-Liu
    Collaborator

    和这个没关系,网关1秒就会超时,您可以查一下日志

  4. caijiatao commented on Nov 21, 2025

    @caijiatao
    Author

    这种pending住的请求没有对应的日志,超时的会有正常日志打印

  5. Dot-Liu commented on Nov 21, 2025

    @Dot-Liu
    Collaborator

    那是否能判断是否连到了网关呢?看看能不能在服务器上跑一个tcpdump看看

  6. caijiatao commented on Nov 21, 2025

    @caijiatao
    Author
    Image 红框是TCPDUMP的请求的记录
  7. Dot-Liu commented on Nov 21, 2025

    @Dot-Liu
    Collaborator

    看t 10BC8 cpdump是握手成功,麻烦您把日志的登记改成debug,然后重启Apinto
    配置文件在容器里的/etc/apinto/apinto.yml中

    需要修改内容如下图:
    Image

  8. caijiatao commented on Nov 21, 2025

    @caijiatao
    Author
    Image

    打开了,请求对应的日志

  9. Dot-Liu commented on Nov 21, 2025

    @Dot-Liu
    Collaborator

    一直没有返回是吗?尝试在服务器里使用curl请求一下,看看结果如何

  10. caijiatao commented on Nov 21, 2025

    @caijiatao
    Author
    Image

    服务器里面输出了一半停住了

  11. Dot-Liu commented on Nov 21, 2025

    @Dot-Liu
    Collaborator

    curl -v,输出一下详细的头部信息,当前使用的Apinto版本号是多少呢?

  12. caijiatao commented on Nov 21, 2025

    @caijiatao
    Author
    Image

    版本是 0.22.15

  13. Dot-Liu commented on Nov 21, 2025

    @Dot-Liu
    Collaborator

    方便加到我们的企业微信群吗?我直接给您远程排查一下

  14. Dot-Liu commented on Nov 21, 2025

    @Dot-Liu
    Collaborator
    Image
  15. caijiatao commented on Dec 15, 2025

    @caijiatao
    Author

    截断原因是配置了 http log 后会产生截断,删除后可以正常返回

  16. Dot-Liu commented on Jan 16, 2026

    @Dot-Liu
    Collaborator

    该问题已处理,您可更新到v0.22.19版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0