nanos / FediFetcher

FediFetcher is a tool for Mastodon that automatically fetches missing replies and posts from other fediverse instances, and adds them to your own Mastodon instance.
https://blog.thms.uk/fedifetcher?utm_source=github
MIT License
297 stars 215 forks source link

Fails on exit code 1: not supported between instances of 'str' and 'int' #54

Closed SiskoUrso closed 1 year ago

SiskoUrso commented 1 year ago

Since yesterday I have started having an issue with it failing constantly with the error:

2023-06-18 02:24:18.123189 UTC: Job failed after 0:03:53.352363. File "/home/runner/work/FediFetcher/FediFetcher/find_posts.py", line 885, in if arguments.backfill_mentioned_users > 0: TypeError: '>' not supported between instances of 'str' and 'int' Error: Process completed with exit code 1.

Running as a GitHub action, running the most recent branch

logs from the last run: https://paste.lanofthedead.xyz/?bc97b25835463f1b#2SxgVUpk7hNZt2Nr6qhA5GbY4TPVcTYwYpWWU8phJDZ1

Please let me know if you need anymore information

nanos commented 1 year ago

Hi @SiskoUrso ,

This is because you have supplied as string "0" rather than an integer 0 for backfill-mentioned-users:

https://github.com/SiskoUrso/FediFetcher/blob/83c82366c066dfeeeb418fc37ed8fea81b2d7795/config.json#L6

SiskoUrso commented 1 year ago

Thanks for the reply @nanos , oops I didn't even notice that when setting up, fixed it up and ran through it without issues.

Thank you for taking a look.