Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Randomly "not enough values to unpack" Python errors #799

Closed
mhalano opened this issue Feb 24, 2024 · 4 comments
Closed

Randomly "not enough values to unpack" Python errors #799

mhalano opened this issue Feb 24, 2024 · 4 comments

Comments

@mhalano
Copy link

mhalano commented Feb 24, 2024

I got this errors randomly, and for multiple entrie, not just this one. Here is all the error:

ERROR: Widevine availble on Ubuntu Ports ( http://ports.ubuntu.com/pool/multiverse/w/ )
---------------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mhalano/.local/lib/python3.12/site-packages/urlwatch/handler.py", line 106, in process
    self.load()
  File "/home/mhalano/.local/lib/python3.12/site-packages/urlwatch/handler.py", line 85, in load
    self.old_data, self.timestamp, self.tries, self.etag = self.cache_storage.load(self.job, guid)
                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mhalano/.local/lib/python3.12/site-packages/urlwatch/storage.py", line 572, in load
    for data, timestamp, tries, etag in CacheEntry.query(self.db,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 4, got 0)

This is the configuration for this entry:

name: 'Widevine availble on Ubuntu Ports'
url: 'http://ports.ubuntu.com/pool/multiverse/w/'
filter:
  - html2text:
  - grep: 'widevine'
  - striplines:

I built a wheel file that I installed with pip3 from commit e7a4d00.

@mhalano
Copy link
Author

mhalano commented Feb 24, 2024

I'm using Python 3.12.

@bb6
Copy link

bb6 commented Mar 4, 2024

For what it's worth, nearly identical error's have been previously reported under Issue 779 - Reporting blanks.

@Jamstah
Copy link
Contributor

Jamstah commented Mar 5, 2024

How are you triggering urlwatch?

Is there a possibility you are running two instances at the same time?

Random errors are hard to debug, and finding a way to reproduce the problem is important here.

@mhalano
Copy link
Author

mhalano commented Mar 5, 2024

@Jamstah I was using cron, but since I configured to get emails and these emails came with the errors, I'm running manually for some time just to check the changes. I will close this issue. The problem is equal to #779

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants