scaleway-cli
scaleway-cli copied to clipboard
scw lb backend update backend-id=XXXX forward-port-algorithm=first name=back_http The argument ‘send-proxy-v2’ is deprecated, more info with: scw lb backend update --help Invalid parameters
running: [scw lb backend update backend-id=XXXX forward-port-algorithm=first name=back_http -D] client: using sdk version v1.0.0-beta.6+devclient: using sdk version v1.0.0-beta.6+devThe argument ‘send-proxy-v2’ is deprecated, more info with: scw lb backend update --help creating PUT request on https://api.scaleway.com/lb/v1/regions/nl-ams/backends/XXXX --------------- Scaleway SDK REQUEST 1 : --------------- PUT /lb/v1/regions/nl-ams/backends/XXXXX HTTP/1.1 Host: api.scaleway.com User-Agent: scaleway-sdk-go/v1.0.0-beta.6+dev (go1.15.3; darwin; amd64) scaleway-cli/2.2.1 Content-Length: 337 Content-Type: application/json X-Auth-Token: XXXX Accept-Encoding: gzip {“name”:“back_http”,“forward_protocol”:“tcp”,“forward_port”:0,“forward_port_algorithm”:“first”,“sticky_sessions”:“none”,“sticky_sessions_cookie_name”:“”,“send_proxy_v2":false,“on_marked_down_action”:“on_marked_down_action_none”,“proxy_protocol”:“proxy_protocol_unknown”,“timeout_server”:null,“timeout_connect”:null,“timeout_tunnel”:null}
--------------- Scaleway SDK RESPONSE 1 : --------------- HTTP/2.0 400 Bad Request Content-Length: 140 Content-Security-Policy: default-src ‘none’; frame-ancestors ‘none’ Content-Type: application/json Date: Thu, 22 Oct 2020 13:09:22 GMT Server: Scaleway API-Gateway Strict-Transport-Security: max-age=63072000 X-Content-Type-Options: nosniff X-Frame-Options: DENY {“details”:[{“field”:“ForwardPort”,“message”:“required got 0",“reason”:“constraint”}],“message”:“Invalid parameters”,“type”:“invalid_field”} ----------------------------------------------------------Invalid parameters version was already checked during past 24 hours skipping telemetry report ➜ ~ scw lb backend update backend-id=XXXX forward-port-algorithm=first name=back_http The argument ‘send-proxy-v2’ is deprecated, more info with: scw lb backend update --help Invalid parameters
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Required arguments have changed so request work when setting all of them, but deprecated warning is still printed even tho it is not being used
± scw lb backend update 18b068f7-4ad8-4fb7-8101-f01e399cdb29 forward-port-algorithm=first name=back_http forward-protocol=tcp forward-port=80 sticky-sessions=none
The argument 'send-proxy-v2' is deprecated, more info with: scw lb backend update --help
ID 18b068f7-4ad8-4fb7-8101-f01e399cdb29
Name back_http
ForwardProtocol tcp
ForwardPort 80
ForwardPortAlgorithm first
...