Nodejs pnp-auth (adfs) behind corporate proxy

We have a node/express app that connect to SharePoint onprem using pnp-auth and node-sp-auth-config. (IE connection settings : automatic) Works like a charm

Moving this app to another server On that server IE connection needs to be on manual proxy config to make be able to connect to SharePoint via the browser

For the node app the result is : nodejs app cannot connect to SharePoint “FetchError: request to ….. failed, reason: connect ETIMEDOUT …..:443 at ClientRequest. (d:\NODE\QOMV-CRExport\node_modules\pnp-auth\node_modules\node-fetch\lib\index.js:1444:11) at ClientRequest.emit (events.js:182:13) at TLSSocket.socketErrorListener (_http_client.js:392:9) at TLSSocket.emit (events.js:182:13) at emitErrorNT (internal/streams/destroy.js:82:8) at emitErrorAndCloseNT (internal/streams/destroy.js:50:3) at process._tickCallback (internal/process/next_tick.js:63:19)”

Anybody any pointers how to solve this ?


ubuntu proxy internet configured on file /(etc/apt/apt.conf) but still not working 16.04

i am having issue when configuring proxy configuration. I have done these steps but still it is not working.


Acquire::http::proxy “”; Acquire::ftp::proxy “”; Acquire::https::proxy “”;

then return to main and execute these commands

export http_proxy= export https_proxy=

when i run command env | grep proxy, it shows the proxy setting.

Can you please help me to resolve the issue.

Have tried proxy settings,

Cannot connect to the Internet. Using Ubuntu 16.04, wired connection using ip address of my server. I live in an apartment house with Internet user name and password given to me. I understand that I should be able to connect with an Ethernet cable directly to the outlet from my computer.he laptop that I am successfully using to send this message is using a wireless connection to the same source.

Proxy Laboratory – Residential & Datacenter Seller –

[Image: newl.png]


You can select any IP of the pool that is assigned weekly to you through a list that is filtered in detail like Country, Region, City, ZIP & ISP for experts and newbies. You can change your IP and Location with just 2 clicks, If you decide not to change the port when making the change the current connection in the program or device where the socks / proxy is configured will be updated to the new IP Address & Location automatically, to himself avoiding the change of ip and port in the application or device.
[Image: image1.jpg]


If the activity you want to do is surveys, surf on internet for a long time, play games online, social networks, keep the same IP address for a long time, you simply click on Servers Pool> Select the country you want> You can choose from Region, City, ZIP & ISP, the IP will online long as you’re run the software, you can turn off the IP at any time you want and it will stop working. Any ip of the pool can last up to 15 days online without any permanent disconnection.

[Image: image2.png]

A new technology has arrived at ProxyLab, now you can Create your own IP and share it by socks / proxy, Our software will be the tool for creating it, you can create an IP without any authentication method or if you wish you can create a user and password or if you want to accept connection through a single IP address, you can manage the number of Connected devices and prohibit the use of it. We do not track your activity, documents or records. We have an extremely powerful encryption through Socks5 and SSL technology.
[Image: image3.jpg]

[Image: 70205076_399229707452760_3793383727929753600_n.png]

[Image: 69951232_399230040786060_4406220783056060416_n.png]

Country List
[Image: 70127788_399230107452720_5042238734456586240_n.png]

GEO & Targeting
[Image: 70091051_399230267452704_8594206946293186560_n.png]

On Hold Accounts: Fix it talking with us on telegram

org.apache.axis2.AxisFault: Transport error: 407 Error: Proxy Authentication Required

He implementado en mi aplicacion de Java (NO Maven, ya que es antigua) un WSDL nuevo que me han adjuntado otro departamente, asi se veria desde SOAP:

<soapenv:Header>      <wsse:Security  xmlns:wsse="" xmlns:wsu="">         <wsse:UsernameToken>         <wsse:Username>APP-DCTPNSE-CAN-CR1</wsse:Username>         <wsse:Password>NgEsD3WVOn</wsse:Password>         <wsse:Nonce>xmPk+8IAz6tQdJeZMqlAHD==</wsse:Nonce>         <wsu:Created>2019-08-26T08:49:39.410Z</wsu:Created>         </wsse:UsernameToken>     </wsse:Security>       </soapenv:Header>     <soapenv:Body>        <iges:obtenerListaSptosCanal>           <mseObtenerListaSptosCanal>              <datosOperacion>                 <compania>41</compania>                 <!--Optional:-->                 <acuerdo>9</acuerdo>                 <numeroAplicacion>0</numeroAplicacion>                 <numeroSptoAplicacion>0</numeroSptoAplicacion>                 <procedenciaPoliza>22</procedenciaPoliza>                 <plataforma>39</plataforma>                 <poliza>0731900015919</poliza>                 <operacion>CP</operacion>              </datosOperacion>              <datosComunes>                 <!--Optional:-->                 <datosTraduccion>                    <!--Optional:-->                    <codigoIdioma>es_ES</codigoIdioma>                    <!--Optional:-->                    <mcaLiteralTraducido>S</mcaLiteralTraducido>                 </datosTraduccion>                 <!--Optional:-->                 <datosAutorizacion>                    <!--Optional:-->                    <canalContratacion></canalContratacion>                 </datosAutorizacion>              </datosComunes>           </mseObtenerListaSptosCanal>        </iges:obtenerListaSptosCanal>     </soapenv:Body>  </soapenv:Envelope> 

Y asi es el metodo que he creado que la llama:

public ObtenerListaSptosCanalResponseDocument connect (MSEObtenerListaSptosCanal mseObtenerListaSptosCanal){         ObtenerListaSptosCanalResponseDocument datosSalidaServicio = ObtenerListaSptosCanalResponseDocument.Factory.newInstance();         ObtenerListaSptosCanalDocument datosEntrada = ObtenerListaSptosCanalDocument.Factory.newInstance();         ObtenerListaSptosCanalDocument.ObtenerListaSptosCanal datosEntradaObtenerListaSptosCanal = ObtenerListaSptosCanalDocument.ObtenerListaSptosCanal.Factory.newInstance();         try {             IGestionarConsultaPolCanalExport1_IGestionarConsultaPolCanalHttpServiceStub servicio = getServicioY();             datosEntradaObtenerListaSptosCanal.setMseObtenerListaSptosCanal(mseObtenerListaSptosCanal);             datosEntrada.setObtenerListaSptosCanal(datosEntradaObtenerListaSptosCanal);             crearSOAPHeaderBlock soapHeaderBlock = new crearSOAPHeaderBlock();             servicio._getServiceClient().addHeader(soapHeaderBlock.getSoapHeaderBlock());             datosSalidaServicio = servicio.obtenerListaSptosCanal(datosEntrada);         } catch (AxisFault e) {             // TODO Auto-generated catch block             e.printStackTrace();         } catch (RemoteException e) {             // TODO Auto-generated catch block             e.printStackTrace();         } catch (ObtenerListaSptosCanal_msfObtenerListaSptosCanalMsg e) {             // TODO Auto-generated catch block             e.printStackTrace();         } catch (Exception e) {             // TODO Auto-generated catch block             this.servicioY = null;             e.printStackTrace();         }         return datosSalidaServicio;     }       private IGestionarConsultaPolCanalExport1_IGestionarConsultaPolCanalHttpServiceStub getServicioY() throws Exception{         if(this.servicioY == null){             this.servicioY = new IGestionarConsultaPolCanalExport1_IGestionarConsultaPolCanalHttpServiceStub("");             //this.servicioY = new IGestionarConsultaPolCanalExport1_IGestionarConsultaPolCanalHttpServiceStub();             //this.servicioY = new IGestionarConsultaPolCanalExport1_IGestionarConsultaPolCanalHttpServiceStub("");              Options options = this.servicioY._getServiceClient().getOptions();              HttpTransportProperties.ProxyProperties proxyProperties = new HttpTransportProperties.ProxyProperties();             proxyProperties.setProxyName("proxycorp.geci");             proxyProperties.setProxyPort(8080);             proxyProperties.setUserName("XXX");             proxyProperties.setPassWord("XXX");             options.setProperty(HTTPConstants.PROXY, proxyProperties);             options.setProperty(HTTPConstants.HTTP_PROTOCOL_VERSION, HTTPConstants.HEADER_PROTOCOL_11);             options.setProperty(HTTPConstants.SO_TIMEOUT, 1200000);             options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, 1200000);             options.setProperty(HTTPConstants.CHUNKED, Boolean.FALSE);              HttpTransportPropertiesImpl.Authenticator auth = new HttpTransportPropertiesImpl.Authenticator();             auth.setUsername("YYYY");             auth.setPassword("YYYY");              options.setProperty(HTTPConstants.AUTHENTICATE, auth);             options.setProperty(Constants.Configuration.DISABLE_SOAP11, Boolean.TRUE);             System.out.println("https: " + HTTPTransportConstants.PROTOCOL_HTTPS);         }          return this.servicioY;     } 

Cuando ejecuto la aplicación me da un error en la linea:

datosSalidaServicio = servicio.obtenerListaSptosCanal(datosEntrada);

que es el siguiente:

[err] org.apache.axis2.AxisFault: Transport error: 407 Error: Proxy Authentication Required [err] at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.handleResponse( [err] at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.sendViaPost( org.apache.axis2.transport.http.HTTPSender.send( [err] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons( [err] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke( [err] at org.apache.axis2.engine.AxisEngine.send( [err] at org.apache.axis2.description.OutInAxisOperationClient.send( [err] at org.apache.axis2.description.OutInAxisOperationClient.executeImpl( [err] at org.apache.axis2.client.OperationClient.execute( [err] at evt21_intca_gestionarconspolizacanal_slib.igestionarconsultapolcanal.IGestionarConsultaPolCanalExport1_IGestionarConsultaPolCanalHttpServiceStub.obtenerListaSptosCanal( [err] at [err] at [err] at [err] at [err] at [err] at [err] at javax.servlet.http.HttpServlet.service( [err] at javax.servlet.http.HttpServlet.service( [err] at [err] at [internal classes] [err] Caused by: [err] at [err] at [err] at [err] at [err] at

El metodo que llama es el siguiente(estar en un .jar):

 public ObtenerListaSptosCanalResponseDocument obtenerListaSptosCanal(ObtenerListaSptosCanalDocument obtenerListaSptosCanal2) /*      */     throws java.rmi.RemoteException, ObtenerListaSptosCanal_msfObtenerListaSptosCanalMsg /*      */   { /*  510 */     MessageContext _messageContext = new MessageContext(); /*      */     try /*      */     { /*  513 */       OperationClient _operationClient = this._serviceClient.createClient(this._operations[1].getName()); /*  514 */       _operationClient.getOptions().setAction("http://EVT21_INTCA_GestionarConsPolizaCanal_SLIB/IGestionarConsultaPolCanal/IGestionarConsultaPolCanal/obtenerListaSptosCanalRequest"); /*      */        /*  516 */       _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); /*      */        /*  518 */       addPropertyToOperationClient(_operationClient, "whttp:queryParameterSeparator", "&"); /*      */        /*      */  /*      */  /*      */  /*  523 */       SOAPEnvelope env = null; /*      */        /*  525 */       env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()), obtenerListaSptosCanal2, optimizeContent(new QName("http://EVT21_INTCA_GestionarConsPolizaCanal_SLIB/IGestionarConsultaPolCanal", "obtenerListaSptosCanal")), new QName("http://EVT21_INTCA_GestionarConsPolizaCanal_SLIB/IGestionarConsultaPolCanal", "obtenerListaSptosCanal")); /*      */        /*      */  /*      */  /*      */  /*      */  /*      */  /*      */  /*      */  /*      */  /*      */  /*      */  /*  537 */       this._serviceClient.addHeadersToEnvelope(env); /*      */        /*  539 */       _messageContext.setEnvelope(env); /*      */        /*      */  /*  542 */       _operationClient.addMessageContext(_messageContext); /*      */        /*      */  /*  545 */       _operationClient.execute(true); /*      */        /*  547 */       MessageContext _returnMessageContext = _operationClient.getMessageContext("In"); /*  548 */       SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); /*      */        /*  550 */       Object object = fromOM(_returnEnv.getBody().getFirstElement(), ObtenerListaSptosCanalResponseDocument.class); /*      */        /*      */  /*      */  /*  554 */       return (ObtenerListaSptosCanalResponseDocument)object; 

En cambio ejecutando en la herramienta de Postman me funciona la llamada y me devuelve datos ¿Podéis ayudarme?

[Cloud Firewall] Proxy, VPN, Tor, Spam & Bot detection.

FireMason ( is an IP lookup website featuring proxy, VPN, spam, Tor and bot detection. Using our data you can easily perform fraud checks on your online store, detect malicious players in your online game and much more!

Currently still in beta, but the product works very well. Looking for feedback so we can improve :)


We are happy to help you integrate FireMason with your service or product. Just get in touch via private…

[Cloud Firewall] Proxy, VPN, Tor, Spam & Bot detection.