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: ‘http://myapp.eastus.cloudapp.azure.com’,
port: ‘1234’,
path: ‘/one/two’
]
asynchttp_v1.get(‘basicGetHandler’, params)
}

Does anyone have any ideas?

Michael

docs:

http://docs.smartthings.com/en/latest/ref-docs/async-http-ref.html

Did you try

[…]
uri: 'http://myapp.eastus.cloudapp.azure.com:1234',
[…]
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.

Thanks!

Michael