Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

Request for help: JavaScript exception in WEB_PLATFORM.getUserSession()

$
0
0


(vCenter version 5.5.0 build 1945276 on Linux vCenter appliance)


We have a vCenter plugin using the 5.5.1 SDK and the HTML bridge. We are calling WEB_PLATFORM.getUserSession() to get the username and other info. We see that call fail and generate a JavaScript exception for a user created on the appliance (using useradd). It works fine for the root user.


The JavaScript console in the browser shows these error messages:    


Uncaught SyntaxError: Unexpected token ILLEGAL    


ErrorHandling.js:127 Error: Failed conversion between PP_Var and V8 value


Does anyone have any guidance as to what we can do to avoid this? We need the user id, so we can't just trap and ignore the error.


Thanks!


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>