gawindx / WinNUT-Client

This is a NUT windows client for monitoring your ups hooked up to your favorite linux server.
GNU General Public License v3.0
395 stars 70 forks source link

The text must be shorter than 64 characters Error #81

Open julianx03 opened 3 years ago

julianx03 commented 3 years ago

Hello

Everytime my ups go into battery mode, the nut client shows me that error message and disconnects from the server:

[Id 3: 08.05.2021 12:57:01] Verbindung zum Nut Host IP-Addresse: 3493 fehlgeschlagen: Der Text muss kürzer als 64 Zeichen sein.
Parametername: Text
Der tatsächliche Wert war WinNUT - 2.0
In Verbindung gebracht
Online

Translation:

[Id 3: 08.05.2021 12:57:01] Connection to Nut Host IP address: 3493 failed: The text must be shorter than 64 characters.
Parameter name: Text
The actual value was WinNUT - 2.0
Connected
Online

What is the Problem?

thenktor commented 3 years ago

Same error here, but it appears always, not only in battery mode.

Exception type: System.ArgumentOutOfRangeException
Exception message: Der Text muss kürzer als 64 Zeichen sein.
Parametername: Text
Der tatsächliche Wert war WinNUT-Client - 2.1
In Verbindung gebracht
Online
Batterie OK.
Exception stack trace: 
   bei System.Windows.Forms.NotifyIcon.set_Text(String value)
   bei WinNUT_Client.WinNUT.Event_UpdateNotifyIconStr(String Reason, String Message)
   bei WinNUT_Client.WinNUT.Update_UPS_Data()
   bei WinNUT_Client.WinNUT.Retrieve_UPS_Datas(Object sender, EventArgs e)
   bei System.Windows.Forms.Timer.OnTick(EventArgs e)
   bei System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
gbakeman commented 2 years ago

To everyone following this, please follow our latest issue at https://github.com/nutdotnet/WinNUT-Client/issues/5, there's a new pre-release that should fix this. Please provide your feedback there.