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)


Hello,


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 users that are created on the appliance using useradd. The call works fine for the root user, and on Windows vCenters.

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



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




The browser's JavaScript console shows these error messages coming from "inside" the call (and we see the JavaScript exception):


Uncaught SyntaxError: Unexpected token ILLEGAL


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


To set up these users, we created them by running useradd and passwd from the command line, then using the vCenter UI, we added the users and assigned them to the Administrator role.


Does anyone have an guidance as to what we can do to prevent this error? We need the userid, so we don't want to 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>