Quantcast
Viewing all articles
Browse latest Browse all 2218

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


(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


To set up the user, we created it on the server (using useradd and passwd), then in the vCenter UI, we added that user and put them into the Administrator role.


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>