InfotelGLPI / mydashboard

Plugin mydashboard for GLPI
http://blogglpi.infotel.com/
GNU General Public License v2.0
42 stars 19 forks source link

After enable plugin mydashboard - python script crashes (JSON) #86

Closed chammachamma closed 4 years ago

chammachamma commented 4 years ago

Hi!

After I enable mydashboard one of my python scripts stops working. with the following message:

Traceback (most recent call last): File "open_tickets.py", line 133, in manager.call() File "open_tickets.py", line 123, in call self.executar() File "opentickets.py", line 97, in executar if int(arquivo['id'].split('')[0]) > 44733 and self.verificar_se_o_ticket_pode_ser_criado(arquivo['caminho']) == 0: File "open_tickets.py", line 69, in verificar_se_o_ticket_pode_ser_criado content = json.loads(response.content) File "/usr/lib64/python2.7/json/init.py", line 338, in loads return _default_decoder.decode(s) File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded

If I disable the plugin, it starts to work again.

Best Regards, Marcos

tsmr commented 4 years ago

Same issue i think https://github.com/InfotelGLPI/mydashboard/issues/95