Sender | Message | Time |
---|---|---|
14 May 2022 | ||
17:18:32 | ||
15 May 2022 | ||
05:45:24 | ||
hi, on my self-hosted instance of nitter, visiting some user profiles results in a page titled "Jester route exception" with this as the contents:
i can't reproduce this problem on any other instance of nitter that i try. it only happens on some user profiles and not others. there's nothing in the log other than the same message displayed on the page. i tried to dig into the code to get a better characterization of the problem:
any pointers would be appreciated. | 05:59:40 | |
isker: Hey, thanks for looking into it! nre.nim in this case refers to nre from Nim's standard library. The line in question is here: https://github.com/nim-lang/Nim/blob/version-1-6/lib/impure/nre.nim#L508 | 10:21:51 | |
Iter is added to asynchronous function names, so you should look for getUserId (it's in Nitter's redis_cache.nim file). redpool is a Redis connection pool library I made, it's responsible for calling the function using the pool, but wouldn't have any effect on this error, so you can ignore that detail | 10:23:17 | |
10:45:58 | ||
In reply to @zedeus:tchncs.de thanks, so seems like nim isn't really giving true locations in this stacktrace? maybe because of the asyncness? there is no the only usage i can see is here: https://github.com/zedeus/nitter/blob/ecb6fe4162142f7260b36d4ac4021d6ac7cd2b49/src/experimental/parser/user.nim#L11. my understanding is that nim i really wonder what could possibly be different about my instance here... | 16:59:23 | |
Could it be your specific version of pcre/libpcre? It needs to be built with unicode, which is usually the case but not always | 18:07:39 | |
16 May 2022 | ||
In reply to @zedeus:tchncs.de well, it turns out the inputs just are different. some print debugging has revealed: using this profile's bio https://nitter.net/jesawyer, i get the first string here, the official docker image gets the second https://play.nim-lang.org/#ix=3XSw. that is indeed not unicode 🌞. i suppose i should mention: i am using nitter from nixpkgs, on nixos. of course nix is a bizarro world that could produce this situation :). i guess i will try to understand where/how this encoding strangeness happens. | 00:20:29 | |
okay, after just a few more minutes i'm almost certain it'll be https://github.com/zedeus/nitter/commit/62f8d48c5a1f07c09ebd14fb37abf03d95a73b52, or the lack thereof, in nixpkgs: https://github.com/NixOS/nixpkgs/blob/1d7db1b9e4cf1ee075a9f52e5c36f7b9f4207502/pkgs/development/nim-packages/jsony/default.nix#L5 gotta love it | 00:27:07 | |
* okay, after just a few more minutes of reading i'm almost certain it'll be https://github.com/zedeus/nitter/commit/62f8d48c5a1f07c09ebd14fb37abf03d95a73b52, or the lack thereof, in nixpkgs: https://github.com/NixOS/nixpkgs/blob/1d7db1b9e4cf1ee075a9f52e5c36f7b9f4207502/pkgs/development/nim-packages/jsony/default.nix#L5 gotta love it | 00:27:17 | |
i'll tempt fate and pre-emptively say: thanks for your help! i think this will be the fix. | 00:28:03 | |
it works 🌞 https://github.com/NixOS/nixpkgs/pull/173214 | 01:20:14 | |
150 000 PR?! | 01:31:29 | |
03:31:41 | ||
In reply to @isker:matrix.orgnice! glad I could help :) | 06:23:55 | |
09:49:57 | ||
09:50:16 | ||
09:50:20 | ||
10:37:58 | ||
11:10:26 | ||
13:39:52 | ||
15:32:19 | ||
16:31:14 | ||
18:51:19 | ||
17 May 2022 | ||
03:06:44 | ||
13:56:11 | ||
14:15:41 | ||
21:02:16 | ||
21:15:40 |