loopbackio / loopback-connector-soap

LoopBack's SOAP based Web Services Connector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

application does not start if a wsdl is down

blacktrue opened this issue · comments

Hi i have a API with loopback versión 3.0 when execute NODE_ENV=local slc run

Connection failed: Error: Invalid WSDL URL: http://myurlservice.com/Service.asmx?wsdl

 Code: 503

 Response Body: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\">\r\n<HTML><HEAD><TITLE>Service Unavailable</TITLE>\r\n<META HTTP-EQUIV=\"Content-Type\" Content=\"text/html; charset=us-ascii\"></HEAD>\r\n<BODY><h2>Service Unavailable</h2>\r\n<hr><p>HTTP Error 503. The service is unavailable.</p>\r\n</BODY></HTML>\r\n"

It will be retried for the next request

events.js:183
      throw er; // Unhandled 'error' event

I need the application to start even if the service is not available

I already resolved it, thanks