You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More information in this comment. Let's document the fact that our http interface consumes another options from fetch interface in more generic way and add a concrete example about using agent as described in attached comment.
The text was updated successfully, but these errors were encountered:
Was this ever resolved? I'm trying to use a custom https agent that supplies a cert and the only way I've been able to get it working is through a requestInterceptor that uses Axios:
requestInterceptor: (request)=>{// console.log('adding agent')request.agent=httpsAgent// request.httpsAgent = httpsAgent// request.data = bodyrequest.userFetch=async(url,req)=>{// console.log(`fetching`)// return fetch(url, { ...req, agent: agent })constaxiosRequest={ ...req,data: req.body,httpsAgent: request.agent}constaxiosResponse=awaitaxios(axiosRequest)debugger/* not ideal but axios already parses the JSON response data * and SwaggerClient expects it to still be in text form so * we need to stringify it again */returnnewResponse(JSON.stringify(axiosResponse.data),{status: axiosResponse.status,headers: axiosResponse.headers,})}returnrequest},
More information in this comment. Let's document the fact that our http interface consumes another options from fetch interface in more generic way and add a concrete example about using agent as described in attached comment.
The text was updated successfully, but these errors were encountered: