adobe-javascript-http-client icon indicating copy to clipboard operation
adobe-javascript-http-client copied to clipboard

Socket does not have a constructor

Open russellaugust opened this issue 3 years ago • 2 comments

I could be overlooking something obvious, but when I run this:

 var data = $http({
    method: 'POST',
    payload: {
		username: "My Webhook Name",
		content: "The message to send"
	},
    url: 'http://myURL/andsuch'
});

I get this: Runtime Error: Error Code# 22: Socket does not have a constructor @ file

I'm not sure why it's not seeing SOCKET as I thought this was included in extendscript.

russellaugust avatar Jul 06 '21 07:07 russellaugust

I am having the same issue. Any help with a resolution would be awesome!!!

jacobtaylor81 avatar Dec 01 '22 13:12 jacobtaylor81

Maybe check out https://github.com/grefel/restix

grefel avatar Dec 01 '22 13:12 grefel