Endpoint is blacklisted error


#1

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.


#2

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


#3

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


#4

Check this


#5

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


(I got a hair cut from Alexa) #6

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”?


(Geko) #7

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.


#8

Yes, the server is down. Thanks!


(John) #9

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


(Geko) #10

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.