dogsheep / dogsheep/pocket-to-sqlite

ValueError: invalid literal for int() with base 10

Open
#13 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
106
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Fresh install from pip: pocket-to-sqlite, version 0.2.3

```
$ pocket-to-sqlite fetch pocket.db
[------------------------------------] 31/4625 1d 23:30:14
Traceback (most recent call last):
File "/home/storkk/pocket/venv/bin/pocket-to-sqlite", line 8, in
sys.exit(cli())
^^^^^
File "/home/storkk/pocket/venv/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/storkk/pocket/venv/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/storkk/pocket/venv/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/storkk/pocket/venv/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/storkk/pocket/venv/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/storkk/pocket/venv/lib/python3.12/site-packages/pocket_to_sqlite/cli.py", line 101, in fetch
utils.save_items(bar, db)
File "/home/storkk/pocket/venv/lib/python3.12/site-packages/pocket_to_sqlite/utils.py", line 18, in save_items
"author_id": int(details["author_id"]),
^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'Brian Hayes'
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the fetch entry point in pocket_to_sqlite/cli.py, then inspect save_items in pocket_to_sqlite/utils.py at the failing author_id conversion. Reproduce the shown pocket-to-sqlite fetch command if possible; done means the import handles this Pocket response without the reported ValueError and completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, sqlite
Domain
cli, database
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.