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

Error using .health entry point #38

Open
redfalcoon opened this issue Dec 11, 2023 · 1 comment
Open

Error using .health entry point #38

redfalcoon opened this issue Dec 11, 2023 · 1 comment

Comments

@redfalcoon
Copy link

After your last update .tokens has dismissed and .accounts and .health has been hinerited from nitter branch but using the web entry point

https://nitter.privacydev.net/.health

the system produce the error messages:

An error has occured in one of your routes.
Detail: tables.nim(232) raiseKeyError
asyncfutures.nim(389) read
asyncfutures.nim(389) read
key not found: favoriters

the .accounts works correctly.

@rotorot0
Copy link

rotorot0 commented Apr 20, 2024

This should fix the issue

diff --git a/src/auth.nim b/src/auth.nim
index de1b1d8..629533d 100644
--- a/src/auth.nim
+++ b/src/auth.nim
@@ -9,6 +9,7 @@ const
   dayInSeconds = 24 * 60 * 60
   apiMaxReqs: Table[Api, int] = {
     Api.search: 50,
+    Api.followers: 50,
     Api.tweetDetail: 150,
     Api.photoRail: 180,
     Api.userTweets: 500,
@@ -20,7 +21,11 @@ const
     Api.list: 500,
     Api.listTweets: 500,
     Api.listMembers: 500,
-    Api.listBySlug: 500
+    Api.listBySlug: 500,
+    Api.favorites: 500,
+    Api.favoriters: 500,
+    Api.following: 500,
+    Api.retweeters: 500
   }.toTable

 var

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

2 participants