code":"messaging.adaptors.http.flow.ApplicationNotFound"}}}

2026年03月31日 09:55 processing

错误信息

{"fault":{"faultstring":"Unable to identify proxy for host: maersk-host and url: \/","detail":{"errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"}}}

AI 解决方案

报错分析报告

1.错误翻译


原文:Unable to identify proxy for host: maersk-host and url: /
译文:无法为主机maersk-host和URL/识别代理

2. 原因分析


  • 根本原因:API管理平台未配置对应maersk-host主机和/路径的代理规则

  • 发生位置:HTTP流量适配层(messaging.adaptors.http.flow),触发ApplicationNotFound错误码
  • 3.解决方案


    以Apigee为例,补充代理配置(直接部署生效):
    # 代理配置文件(apiproxy/proxies/default.xml 片段)
    <ProxyEndpoint name="default">
      <HTTPProxyConnection>
        <BasePath>/</BasePath>
        <VirtualHost>default</VirtualHost>
        <RouteRule name="route">
          <TargetEndpoint>default</TargetEndpoint>
        </RouteRule>
      </HTTPProxyConnection>
      <Condition>(proxy.pathsuffix MatchesPath "/") and (request.header.host = "maersk-host")</Condition>
    </ProxyEndpoint>
    
    # 目标端点配置(apiproxy/targets/default.xml 片段)
    <TargetEndpoint name="default">
      <HTTPTargetConnection>
        <URL>https://your-actual-maersk-backend.com/</URL> <!-- 替换为真实后端地址 -->
      </HTTPTargetConnection>
    </TargetEndpoint>
    

    操作步骤
  • 在API管理平台创建名为maersk-proxy的代理;

  • 绑定主机maersk-host和基础路径/

  • 指向正确的后端服务URL;

  • 部署并验证路由。
  • 4. 预防措施


  • 最佳实践1:部署前用apigeetool或平台自带工具校验代理-主机-路径的映射关系;

  • 最佳实践2:用Terraform/Ansible统一管理代理配置,避免手动遗漏;

  • 推荐工具:Apigee Proxy Linter(检查配置一致性)、Postman(模拟请求验证路由)。
  • ---
    分析完成,请验证代理配置后重试。