Node crashes if network map returns HTTP 50X error

Description

See console dump:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 java.io.IOException: Response Code 502: <html> <head><title>502 Bad Gateway</title></head> <body bgcolor="white"> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.10.3 (Ubuntu)</center> </body> </html> at net.corda.core.internal.InternalUtils.checkOkResponse(InternalUtils.kt:353) ~[corda-core-R3.CORDA-3.0-DP3-RC04.jar:?] at net.corda.node.services.network.NetworkMapClient.getNetworkMap(NetworkMapClient.kt:105) ~[corda-node-R3.CORDA-3.0-DP3-RC04.jar:?] at net.corda.node.internal.NetworkParametersReader.retrieveNetworkParameters(NetworkParametersReader.kt:41) ~[corda-node-R3.CORDA-3.0-DP3-RC04.jar:?] at net.corda.node.internal.NetworkParametersReader.access$retrieveNetworkParameters(NetworkParametersReader.kt:28) ~[corda-node-R3.CORDA-3.0-DP3-RC04.jar:?] at net.corda.node.internal.NetworkParametersReader$networkParameters$2.invoke(NetworkParametersReader.kt:37) ~[corda-node-R3.CORDA-3.0-DP3-RC04.jar:?] at net.corda.node.internal.NetworkParametersReader$networkParameters$2.invoke(NetworkParametersReader.kt:28) ~[corda-node-R3.CORDA-3.0-DP3-RC04.jar:?] at kotlin.SynchronizedLazyImpl.getValue(Lazy.kt:131) ~[kotlin-stdlib-1.2.20.jar:1.2.20-release-81 (1.2.20)] at net.corda.node.internal.NetworkParametersReader.getNetworkParameters(NetworkParametersReader.kt) ~[corda-node-R3.CORDA-3.0-DP3-RC04.jar:?] at net.corda.node.internal.AbstractNode.start(AbstractNode.kt:220) ~[corda-node-R3.CORDA-3.0-DP3-RC04.jar:?] at net.corda.node.internal.Node.start(Node.kt:373) ~[corda-node-R3.CORDA-3.0-DP3-RC04.jar:?] at net.corda.node.internal.EnterpriseNode.start(EnterpriseNode.kt:171) ~[corda-node-R3.CORDA-3.0-DP3-RC04.jar:?] at net.corda.node.internal.NodeStartup.startNode(NodeStartup.kt:157) ~[corda-node-R3.CORDA-3.0-DP3-RC04.jar:?] at net.corda.node.internal.NodeStartup.run(NodeStartup.kt:131) [corda-node-R3.CORDA-3.0-DP3-RC04.jar:?] at net.corda.node.Corda.main(Corda.kt:26) [corda-node-R3.CORDA-3.0-DP3-RC04.jar:?]

Status

Assignee

Katarzyna Streich

Reporter

David Lee

Priority

High

Labels

None

Severity

Critical

Fix versions

Ported to...

None

Feature Team

Network Services

Affected OS

Windows