Commit graph

78 commits

Author SHA1 Message Date
Andre Medeiros
06bdb905e5 adjust backoff schedules for reddit 2022-11-03 14:14:44 -04:00
Andre Medeiros
a5f5086938 tracing 2022-11-03 13:43:10 -04:00
Andre Medeiros
164652e2e4 explicitly use http2 2022-11-02 19:05:23 -04:00
Andre Medeiros
b1aac725aa try reddit without verifyign certificates 2022-11-01 19:41:49 -04:00
Andre Medeiros
2c04466a6b more reddit client tweaks 2022-10-26 21:59:44 -04:00
Andre Medeiros
4a805e57d0 experiment with http client changes in reddit 2022-10-26 21:39:04 -04:00
Andre Medeiros
bf2dff8497 more precision on measurement 2022-10-26 20:20:45 -04:00
Andre Medeiros
f50d9f075e use error maps to define custom errors per request 2022-10-26 18:51:33 -04:00
Andre Medeiros
2b03f4f884 be more forgiving with reddit errors 2022-10-26 18:28:11 -04:00
Andre Medeiros
696f932baa Live activities 2022-10-19 09:37:41 -04:00
Andre Medeiros
4e453e0db2 measure reddit latency when we finish reading the body 2022-07-15 12:36:29 -04:00
Andre Medeiros
102cbb2ee2 setup timeouts on reddit http client 2022-07-15 12:34:28 -04:00
Andre Medeiros
f4fea41435 remove some load 2022-07-13 18:43:27 -04:00
Andre Medeiros
556c1dd9b2 test default http client 2022-07-13 16:38:10 -04:00
Andre Medeiros
aaf1fbd98a 401 and 403 are forbidden and we'll delete account 2022-07-13 13:09:11 -04:00
André Medeiros
8dc4ac350e omg fix watchers and subreddit things (#79)
* omg fix watchers and subreddit things

* don't send thumbnails for posts that are over 18
2022-05-26 17:54:02 -04:00
Andre Medeiros
7da47176a2 Revert "token refresh mechanism"
This reverts commit df96aaa768.
2022-05-25 20:17:03 -04:00
Andre Medeiros
df96aaa768 token refresh mechanism 2022-05-25 20:12:54 -04:00
Andre Medeiros
5ede5d6987 more breahing room with tokens 2022-05-25 19:49:14 -04:00
Andre Medeiros
ca8fc6e991 tighten authenticated client params 2022-05-25 19:28:41 -04:00
Andre Medeiros
dc54bb76df try referencing client instead of embedding 2022-05-25 19:22:05 -04:00
Andre Medeiros
17c503e0e3 don't retry on 403 2022-05-23 17:37:51 -04:00
Andre Medeiros
5fa9bfaa45 distinguish between 401 and 403 2022-05-23 17:26:40 -04:00
Andre Medeiros
c35ec006f1 simplify reddit error handling 2022-05-23 11:33:15 -04:00
André Medeiros
f9b9c595cf Better testing (#62)
* some tests

* more tests

* tidy up go.mod

* more tests

* add postgres

* beep

* again

* Set up schema

* fix device test
2022-05-07 12:37:21 -04:00
Andre Medeiros
294243b02d fix ci 2022-03-26 13:40:51 -04:00
Andre Medeiros
fc617b535c fix tests 2022-03-26 13:29:58 -04:00
Andre Medeiros
455788a9c4 strip .json from urls 2022-03-14 09:40:18 -04:00
Andre Medeiros
3bf38b0630 record timestamp and crazy ratelimit cases 2022-03-12 16:00:41 -05:00
Andre Medeiros
b9389511f6 log requests per account 2022-03-12 14:46:36 -05:00
Andre Medeiros
195bd55426 more info on ratelimit; change useragent 2022-03-12 14:22:00 -05:00
Andre Medeiros
7bff205523 report rate limit 100% 2022-03-12 14:07:15 -05:00
Andre Medeiros
907dc5510d i am idiot 2022-03-12 13:45:50 -05:00
Andre Medeiros
5ad98494ee fix rate limiter part 2 2022-03-12 13:25:34 -05:00
Andre Medeiros
77162dd513 fix rate limiting parsing 2022-03-12 13:15:59 -05:00
Andre Medeiros
7a6955212b fix rate limiting 2022-03-12 12:58:07 -05:00
Andre Medeiros
a1a098b448 ch-ch-changes 2022-03-12 12:50:05 -05:00
Andre Medeiros
ec12775621 retry logic 2021-10-28 10:57:09 -04:00
Andre Medeiros
c8bec95bed add stuck notifications worker 2021-10-17 10:17:41 -04:00
Andre Medeiros
65792abd94 add subreddit trending posts watcher 2021-10-10 11:51:42 -04:00
Andre Medeiros
4955f74f52 user following 2021-10-09 10:59:20 -04:00
Andre Medeiros
203b6600d5 don't be clever with server errors 2021-09-25 14:42:53 -04:00
Andre Medeiros
698c65b1f4 tweaks 2021-09-25 14:02:00 -04:00
Andre Medeiros
a5bd4c2ce4 check last 100 hot posts too 2021-09-25 13:05:05 -04:00
Andre Medeiros
3361403379 subreddit notifications 2021-09-25 12:56:01 -04:00
Andre Medeiros
fc1065deb5 fix ci 2021-09-25 09:19:42 -04:00
Andre Medeiros
42a9fb415e report timeout errors separately 2021-08-14 14:07:19 -04:00
Andre Medeiros
d17151a3b3 test reddit 2021-08-14 13:42:28 -04:00
Andre Medeiros
ac4765f813 tweak client settings 2021-07-15 20:50:32 -04:00
Andre Medeiros
893e5bd5a3 Use old refresh token if new one is missing 2021-07-15 18:53:22 -04:00