在Higress中,java后端有个文件流,我发现用higress死活就不行,nginx-ingress就可以没有啥特殊的配置。就一个文件流。前端对接后端直接下载xlsx。是不是不支持?USER : {"authority":"api.xxx.cn","bytes_received":"174","bytes_sent":"87","downstream_local_address":"10.1.2.18:443","downstream_remote_address":"x.x.x.x:64730","duration":"150","istio_policy_status":"-","method":"POST","path":"/report/rms/exportReport/exportReport03","protocol":"HTTP/2","request_id":"0cf20e89-1006-917e-9069-05e98f0a6938","requested_server_name":"api.xxx.cn","response_code":"502","response_flags":"UPE","route_name":"dj-gateway","start_time":"2024-08-20T07:01:29.085Z","trace_id":"e3d446c511f4c2b220d42550de262990","upstream_cluster":"outbound|9000||dj-gateway-svc.bayi-prod.svc.cluster.local","upstream_host":"10.1.2.31:9000","upstream_local_address":"10.1.2.18:57754","upstream_service_time":"-","upstream_transport_failure_reason":"-","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36","x_forwarded_for":"106.14.166.50"}
response flag UPE 是 upstream protocol error,envoy对RFC的遵循比nginx严格,比如后端传了多个 transfer encoding 头,就会判定协议错误,具体要看看你后端返回的header。此回答整理自钉群"Higress 社区交流 2 群"
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。