Python Forum
Runtime error: coercing to Unicode: need string or buffer, NoneType found
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Runtime error: coercing to Unicode: need string or buffer, NoneType found
#1
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 "
Reply
#2
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.
Reply
#3
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 .
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  the quest for a mutable string (buffer) Skaperen 2 195 Apr-04-2024, 12:42 PM
Last Post: Skaperen
  unicode error message Skaperen 2 2,925 Oct-11-2017, 08:28 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020