Kodi Community Forum
Solved Python exceptions in add-ons... - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+--- Thread: Solved Python exceptions in add-ons... (/showthread.php?tid=376797)



Python exceptions in add-ons... - mrob - 2024-03-28

I'm seeing Python exceptions that flash error alerts on the Kodi main page.

UL'ing the log here: https://termbin.com/7aXX

You can easily find the exceptions by searching the log for: 2024-03-27 10:57:50.808, then 2024-03-27 10:57:50.850, and 2024-03-27 10:57:51.086.

I've tried updating these add-ons, but the errors persist. Reading the logs, the details are too technical for me to understand.

How can I fix these?


RE: Python exceptions in add-ons... - DarrenHill - 2024-03-28

Can you use our paste.kodi.tv site for logs please?

That one you linked is giving all sorts of warnings on my PC...


RE: Python exceptions in add-ons... - mrob - 2024-03-29

Does paste.kodi.tv work with nc? What's the port number?


RE: Python exceptions in add-ons... - DarrenHill - 2024-03-29

No idea - it's designed for use via the Add-on:Kodi Logfile Uploader (wiki) or failing that via copy/paste in a web browser.


RE: Python exceptions in add-ons... - mrob - 2024-03-30

I'm using a headless server, so command line is preferable, thanks.

EDIT: I resolved this problem by upgrading Kodi.

For this, though, I had to upgrade the Linux and now of course there are other problems, Linux related, and so I'm off trying to get Linux help in some other forum, and that's another rabbit hole.

Concerning the matter at hand, if we are supposed to paste Kodi logs and ppl are going to complain about sites like termbin, then it would be helpful if paste.kodi.tv could talk to command-line utilities.

If this is possible, then kindly make it known how. If this is not possible, then may I humbly suggest that it should be.


RE: Python exceptions in add-ons... - scott967 - 2024-04-09

AFAIK, with tool of choice open an https session to https://paste.kodi.tv/, POST the file to https://paste.kodi.tv/documents and if successful in the RESPONSE get a json object, the 'key' field has the value to append to https://paste.kodi.tv/ to GET the pasted file.

scott s.
.


RE: Python exceptions in add-ons... - mrob - 2024-04-13

Maybe there's a better way to do this, but...
Quote:cat /home/kodi/.kodi/temp/kodi.log | curl -X POST -s --data-binary @- 'https://paste.kodi.tv/documents' | awk -F '"' '{ print "https://paste.kodi.tv/"$4 }'

...it looks like this command (above) is needed because hastebin doesn't support nc.

Some people suggest installing the haste client, but having to sudo install another dependency is kind of a non-starter.

Since this is totally non-obvious, my humble suggestion would be to update the documentation to explain how to send a Kodi log file to the required Kodi pastebin using the command line.