VMware Cloud Community
xian_
Expert
Expert
Jump to solution

Property or method 'uri' not found on object RESTHost

I tried to use the AddRESTHost action in com.vmware.library.http-rest.configuration module but I'm receiving this exception:

(com.vmware.library.http-rest.configuration/addRESTHost) Property or method 'uri' not found on object RESTHost

The script starts with

var host = new RESTHost(name);

host.uri = url;

That should be

host.url = url;

REST plugin version is 2.2.2.9866760 (embedded vRO).

0 Kudos
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

Nice catch. I looked at the commit history of the action code and it seems this error has been there forever Smiley Happy

I guess it wasn't detected so far just because this action is not actually used by the workflow 'Add a REST host' which is the primary way for users to register a new REST host.

Do you need an urgent fix? I can make a new build of the plug-in and upload it here later this week, or we can fix this error as part of regular bugfixing process and deliver a new plug-in build when more fixes are accumulated.

View solution in original post

0 Kudos
2 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

Nice catch. I looked at the commit history of the action code and it seems this error has been there forever Smiley Happy

I guess it wasn't detected so far just because this action is not actually used by the workflow 'Add a REST host' which is the primary way for users to register a new REST host.

Do you need an urgent fix? I can make a new build of the plug-in and upload it here later this week, or we can fix this error as part of regular bugfixing process and deliver a new plug-in build when more fixes are accumulated.

0 Kudos
xian_
Expert
Expert
Jump to solution

No urgency thanks, I copied the script and fixed myself.

By using the action I just wanted to minimize the amount of JS in the workflow.

0 Kudos