How to add port number to http async asynchttp_v1.get request

I am unable to figure out how to assign a port number using asynchttp_v1.get()

My best guess is like the following, but I have never been able to get anything other than a 500 result.

def getSomethingAsync(){
def params = [
uri: ‘’,
port: ‘1234’,
path: ‘/one/two’
asynchttp_v1.get(‘basicGetHandler’, params)

Does anyone have any ideas?



Did you try

uri: '',
1 Like

Hi Andreas,

Thank you for the response.

Okay… egg on face with this one. I did try that repeatedly, but I must have been making some other mistake at the same time that was resulting in the 500 error. This seems to work.