aliyun / darabonba-openapi

15 stars 8 forks source link

The httpProxy setting doesn't work #134

Open silentacorn opened 1 year ago

silentacorn commented 1 year ago

Seems the httpProxy setting doesn't work even I set it in RuntimeOptions. Didn't find any call step to use these setting even when debug the code which download from the official document example: https://next.api.aliyun.com/api/Dysmsapi/2017-05-25/SendSms

Code is as below:

let runtime = new $Util.RuntimeOptions({ httpProxy: "127.0.0.1:7890", httpsProxy: "127.0.0.1:7890", noProxy: "localhost,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16", }); let resp = await client.sendSmsWithOptions(sendSmsRequest, runtime);