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

[Bug] Missing hash key: "audioStreams" (KeyError) #3860

Closed
harpermg opened this issue Jun 6, 2023 · 6 comments
Closed

[Bug] Missing hash key: "audioStreams" (KeyError) #3860

harpermg opened this issue Jun 6, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@harpermg
Copy link

harpermg commented Jun 6, 2023

Describe the bug

Steps to Reproduce

Logs

Screenshots

Additional context

Title: Missing hash key: "audioStreams" (KeyError)
Date: 2023-06-06T18:10:23Z
Route: /watch?v=0CTp1a-aCUM&listen=false
Version: 2023.05.31-16ac3be8 @ master

Backtrace

Missing hash key: "audioStreams" (KeyError)
  from /usr/share/crystal/src/hash.cr:1080:9 in '??'
  from /usr/share/crystal/src/json/any.cr:249:3 in 'fmt_stream'
  from src/invidious/routes/watch.cr:128:18 in 'handle'
  from lib/kemal/src/kemal/route.cr:13:9 in '->'
  from src/invidious/helpers/handlers.cr:30:37 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from lib/kemal/src/kemal/filter_handler.cr:21:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from src/invidious/helpers/handlers.cr:94:12 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from src/invidious/helpers/handlers.cr:151:29 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from src/ext/kemal_static_file_handler.cr:106:14 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/request_processor.cr:51:11 in 'process'
  from /usr/share/crystal/src/http/server.cr:502:5 in '->'
  from /usr/share/crystal/src/fiber.cr:146:11 in 'run'
  from ???

@harpermg harpermg added the bug Something isn't working label Jun 6, 2023
@github-actions github-actions bot added the duplicate This issue or pull request already exists label Jun 6, 2023
@github-actions github-actions bot closed this as completed Jun 6, 2023
@unixfox unixfox reopened this Jun 6, 2023
@iv-org iv-org deleted a comment from github-actions bot Jun 6, 2023
@unixfox unixfox removed the duplicate This issue or pull request already exists label Jun 6, 2023
@SamantazFox
Copy link
Member

Can you try cleaning the "videos" table in the database?

sudo su - postgres
psql invidious -c "DELETE FROM video * ;"

@unixfox
Copy link
Member

unixfox commented Jun 6, 2023

@harpermg which instance are you using?

@harpermg
Copy link
Author

harpermg commented Jun 6, 2023

privacydev.net

@SamantazFox
Copy link
Member

By now the problem should have been resolved?

@unixfox
Copy link
Member

unixfox commented Sep 17, 2023

Can't reproduce the issue anymore, closing.

@unixfox unixfox closed this as completed Sep 17, 2023
@stemy2
Copy link

stemy2 commented Sep 21, 2023

It happened again on the said instance.

Title: `Missing hash key: "audioStreams" (KeyError)`
Date: `2023-09-21T15:09:53Z`
Route: `/watch?v=kobmNpOTfgc`
Version: `2023.08.26-ac0c0609 @ master`

<details>
<summary>Backtrace</summary>
<p>
   

Missing hash key: "audioStreams" (KeyError)
  from /usr/share/crystal/src/hash.cr:1080:9 in '??'
  from /usr/share/crystal/src/json/any.cr:261:3 in 'fmt_stream'
  from src/invidious/routes/watch.cr:128:18 in 'handle'
  from lib/kemal/src/kemal/route.cr:13:9 in '->'
  from src/invidious/helpers/handlers.cr:30:37 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from lib/kemal/src/kemal/filter_handler.cr:21:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from src/invidious/helpers/handlers.cr:94:12 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from src/invidious/helpers/handlers.cr:151:29 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call_next'
  from src/ext/kemal_static_file_handler.cr:106:14 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/handler.cr:30:7 in 'call'
  from /usr/share/crystal/src/http/server/request_processor.cr:51:11 in 'handle_client'
  from /usr/share/crystal/src/fiber.cr:146:11 in 'run'
  from ???

</p>
</details>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants