Python Forum

Full Version: Runtime error: coercing to Unicode: need string or buffer, NoneType found
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello All,

I am using a script from VMWARE Vsphere cli (esxcli ) in a nagios server(centos 7) to get info from Esxi server

when i try to execute the command from centos server command line its working fine . But when i deploy in the Nagios checks , am getting the following error message at the front end web browser .
"
Runtime error: coercing to Unicode: need string or buffer, NoneType found "
Quote:Runtime error: coercing to Unicode: need string or buffer, NoneType found "
It means that at some point in a python file, a None value is passed to a function that expected a string. You need to read the full traceback to understand where the error occurs and if there is something you can do.
I downloaded the vcli package from https://code.vmware.com/tool/vsphere-cli/6.5

and esxcli is binary which am am unable to see the code .

Also am wondering when i run it manually at command line its running fine . When i integrate that with the nagios am facing this error at front end .