alphapapa / pocket-reader.el

Emacs client for Pocket reading list (getpocket.com)
GNU General Public License v3.0
222 stars 12 forks source link

I am getting "wrong-type-argument sequencep 1" on all list pages #53

Open christofdamian opened 1 month ago

christofdamian commented 1 month ago

My Emacs debugging skills are not great. This happens whenever there is a search, and therefore also on the first page.

This is the backtrace:

Debugger entered--Lisp error: (wrong-type-argument sequencep 1)
  pocket-reader--get-items(nil)
  pocket-reader-search(nil)
  pocket-reader-refresh()
  pocket-reader-mode()
  pocket-reader()
  funcall-interactively(pocket-reader)
  command-execute(pocket-reader)

I can try other things if that were helpful for debugging.

alphapapa commented 1 month ago

This package works correctly for me. Please try to reproduce the problem in a clean Emacs configuration, e.g. using https://github.com/alphapapa/with-emacs.sh (./with-emacs.sh -i pocket-reader).

christofdamian commented 1 month ago

That does indeed work. I will have to bisect my config. Sorry for the noise.

christofdamian commented 1 month ago

This was the cause, btw. I had this in my custom-set-variables, as I previously had problems with empty amp_urls.

(pocket-reader-url-priorities '(resolved_url given_url amp_url))

Thanks for pointing me in the right direction.

alphapapa commented 1 month ago

This was the cause, btw. I had this in my custom-set-variables, as I previously had problems with empty amp_urls.

(pocket-reader-url-priorities '(resolved_url given_url amp_url))

Thanks for pointing me in the right direction.

I don't understand why that would cause this problem. That may suggest a bug after all.

If you can, please re-evaluate the pocket-reader.el file (i.e. to make its functions non-byte-compiled), then cause the error again, and provide the full backtrace.