nitter icon indicating copy to clipboard operation
nitter copied to clipboard

Nitter page load crashes with error "Can't parse enum. At offset: 4118" when handling Twitter 3D models

Open WeebDataHoarder opened this issue 3 years ago • 2 comments

When loading Tweets with embedded 3D models, Nitter cannot handle them and crashes the load. Even if not supported, they should be handled gracefully.

Another issue is that any profile that has RT'd such tweets will also stop the profile from loading entirely, for example, https://twitter.com/tomventimiglia (Twitter ad dev that unleashed these onto the world).

Tweets that reproduce the issue

https://twitter.com/Target/status/1509651281995919369

https://twitter.com/Lexus/status/1509270606411313152

https://twitter.com/newbalance/status/1507087258783924230

image

URLs under which 3D models are hosted under

  • https://pbs.twimg.com/model_3d_img/1504180454051749888/FN_r3uJUcAQTbiK.glb
  • https://pbs.twimg.com/model_3d_img/1504180454051749888/FN_r3uJUcAQTbiK.glb
  • https://pbs.twimg.com/model_3d_img/1504181783759400967/FN_tG3WVIAIPauu.glb
  • https://pbs.twimg.com/model_3d_img/1504182591762714628/FN_tzFxVUAQ6k58.glb

Error excerpt

An error has occured in one of your routes.
Detail: jsony.nim(398) parseHook
asyncfutures.nim(389) read
asyncfutures.nim(389) read
asyncfutures.nim(389) read
asyncfutures.nim(389) read
Can't parse enum. At offset: 4118
An error has occured in one of your routes.
Detail: jsony.nim(398) parseHook
asyncfutures.nim(389) read
asyncfutures.nim(389) read
asyncfutures.nim(389) read
asyncfutures.nim(389) read
asyncfutures.nim(389) read
Can't parse enum. At offset: 3545

WeebDataHoarder avatar Apr 01 '22 21:04 WeebDataHoarder

Just found same issue with opening @LEGO_Group Twitter account page on various instances (including main):

  • https://nitter.net/LEGO_Group
  • https://nitter.it/LEGO_Group
  • https://nitter.fdn.fr/LEGO_Group

An error has occured in one of your routes.

Detail:

asyncfutures.nim(389) read
asyncfutures.nim(389) read
asyncfutures.nim(389) read
asyncfutures.nim(389) read
asyncfutures.nim(389) read
Can't parse enum. At offset: 182

Here is actual snapshot of this Twitter page:

  • http://web.archive.org/web/20220701221833/https://twitter.com/LEGO_Group

ghost avatar Jul 01 '22 22:07 ghost

Another tweet exhibiting this in case it's remotely useful (apologies for the noise if not): https://nitter.it/wongmjane/status/1544630749009063937 Can't parse enum. At offset: 3545

fasiha avatar Jul 07 '22 19:07 fasiha