nestjs-httpservice添加代理
我有下一个代理配置(我刚刚在postman中测试了它及其工作原理) 主持人:'http://tsl.proxyurl.com/standard.pac,端口:8080,协议:https,无用户名,无密码nestjs-httpservice添加代理,nestjs,Nestjs,我有下一个代理配置(我刚刚在postman中测试了它及其工作原理) 主持人:'http://tsl.proxyurl.com/standard.pac,端口:8080,协议:https,无用户名,无密码 And this is my code: const options = { data, 'proxy': { host: 'http://tsl.proxyurl.com/standard.pac',
And this is my code:
const options = {
data,
'proxy': {
host: 'http://tsl.proxyurl.com/standard.pac',
port: 8080
},
'headers': {
'Authorization': `Basic ${base64Auth}`,
'Content-Type': 'application/x-www-form-urlencoded',
},
};
const endpoint = `https://api.myrurl.com/st/token`;
const response = await this.httpService.post(endpoint, data, options).toPromise();
但每次我尝试,我都会得到:
消息:“客户端网络套接字在安全TLS之前已断开连接”
连接已建立'
有人也有类似的问题?我怎样才能修好它