-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
bug: traffic-split plugin can't proxy virtual upstream that schema is https #8996
Comments
What's your APISIX version? I cannot grep the key error message. |
Apisix. version is 2.9 . But I think my issuse description |
|
yes, The version |
traffic-split doesn't support specifying apisix/apisix/plugins/traffic-split.lua Lines 167 to 176 in e4e7c73
I need this feature too ;-) |
I have completed this feature, Could you assign it to me @tokers @spacewander |
Also need this fix. Looks like traffic-split plugin can only send request to http schema. |
Current Behavior
i have two upstream using https protocol, when i configure traffice-splite plugin on one route proxying that two upstream. i find i can not get correct response, it tells me that require "Bad Request This combination of host and port requires TLS"
Expected Behavior
i can use this route with traffice-split plugin proxy https upstream
Error Logs
apisix's response is that
Bad Request
This combination of host and port requires TLS
Steps to Reproduce
curl "http://127.0.0.1:9080/apisix/admin/routes/1234567890" -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '{"uri":"/health","plugins":{"traffic-split":{"rules":[{"name":"upstream_A","type":"roundrobin","nodes":{"ip:port":10},"timeout":{"connect":15,"send":15,"read":15}}]}},"upstream": {"type": "roundrobin","nodes": {"ip:port": 2}}}'
curl -X GET http://127.0.0.1:9080/health
Environment
apisix version
): any versionuname -a
): Linux 3.10.0-957.el7.x86_64 change: added doc of how to load plugin. #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linuxopenresty -V
ornginx -V
): nginx version: openresty/1.19.9.1curl http://127.0.0.1:9090/v1/server_info
): 3.4.0luarocks --version
):3.4.0The text was updated successfully, but these errors were encountered: