Endpoint is blacklisted error

I am getting the following error when trying to send data to an API:

java.lang.SecurityException: Endpoint 198.164.157.214:3030/data_points is blacklisted.

Here is my code:

    def postApi3 = [
		uri: '198.164.157.214:3030/data_points',
		headers: ['Content-Type': 'application/xml'],
		body:'<?xml version="1.0" encoding="windows-1256"?>'+
            '<Meters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"      **strong text**xmlns:xsd="http://www.w3.org/2001/XMLSchema">'+
              '<id>' + MeterID + '</id>'+
              '<param>Power</param>' +
              '<time> ' + SG2B_time + ' </time>'+
              '<value> '+evt.value + ' </value>'+
            '</Meters>'
        ]
	log.info 'Sending New Power ' + MeterID + '  to NBCC'
    
    httpPost(postApi3) { response -> 
      log.info response
    }

Does anyone know what is causing this, or how I can fix it? Thanks.

What is that IP address about? I don’t remember I setup and IP for my end point.

The API is on a VM server, and that is the IP for the server

Check this

I did see that post, but it wasn’t able to help in my case.

CSC is right…It could also be that the server is down, the 3030 service is down or the server is unreachable. Can you still connect to that VM server using other means (remote desktop,FTP, anything)? Can you telnet to the 198.164.157.214:3030 and get any “response”?

1 Like

198.164.157.214 is a local address on your LAN. You can’t use httpPost to access your local network. You have to use sendHubCommand instead.

2 Likes

Yes, the server is down. Thanks!

1 Like

You’re thinking of 192.168.x.x. Her IP address is not a (local) non-routable address.

You’re correct.

IP address: 198.164.157.214
ISP: University of New Brunswick
Organization: New Brunswick Community Colleges - Committee
City: Fredericton
Region: New Brunswick
Country: Canada (CA)

So being a University network, this machine most likely sits behind a firewall and port 3030 is not open for incoming connections.