MindHunter86 / aniliSeeder

MIT License
0 stars 0 forks source link

panic #132

Open MindHunter86 opened 1 year ago

MindHunter86 commented 1 year ago
1:43AM INF the torrent file has been sended to the worker func=app.(*deploy).deployAssignedTorrents torrent_hash=3a0c1cb2d torrent_name=Nana worker_id=93088514-6d73-4230-83c3-0908c2bf0b8b written_bytes=87038
1:43AM DBG skipping torrent because of noDeploy or isDuplicated flag detection func=app.(*deploy).deployAssignedTorrents torrent_hash=934037188 torrent_name="Yu-Gi-Oh! Shadow Game"
1:43AM DBG starting deploy process for the torrent... func=app.(*deploy).deployAssignedTorrents torrent_hash=934037188 torrent_name="Yu-Gi-Oh! Shadow Game" worker_id=
1:43AM DBG the requested torrent file has been found func=anilibria.(*ApiClient).downloadTorrentFile
1:43AM DBG trying to parse the torrent file contents... filename="Yu-Gi-Oh! Shadow Game - AniLibria.TV [TVRip 720p][1-23].torrent" func=anilibria.(*ApiClient).downloadTorrentFile
1:43AM DBG fixing torrent name... func=app.(*deploy).deployAssignedTorrents old_torrent_name="Yu-Gi-Oh! Shadow Game - AniLibria.TV [TVRip 720p][1-23].torrent" torrent_hash=934037188
1:43AM DBG sending deploy request to the worker... func=app.(*deploy).deployAssignedTorrents torrent_hash=934037188 torrent_name="Yu-Gi-Oh! Shadow Game - AniLibria.TV [TVRip 720p][1-23].torrent"
1:43AM ERR got an error while processing the deploy request error="there is not worker with such id" func=app.(*deploy).deployAssignedTorrents
1:43AM DBG starting deploy process for the torrent... func=app.(*deploy).deployAssignedTorrents torrent_hash=7103eb31f torrent_name="Yu-Gi-Oh! Shadow Game" worker_id=93088514-6d73-4230-83c3-0908c2bf0b8b
1:43AM DBG the requested torrent file has been found func=anilibria.(*ApiClient).downloadTorrentFile
1:43AM DBG trying to parse the torrent file contents... filename="Yu-Gi-Oh! Shadow Game - AniLibria.TV [TVRip 720p][1-22].torrent" func=anilibria.(*ApiClient).downloadTorrentFile
1:43AM DBG fixing torrent name... func=app.(*deploy).deployAssignedTorrents old_torrent_name="Yu-Gi-Oh! Shadow Game - AniLibria.TV [TVRip 720p][1-22].torrent" torrent_hash=7103eb31f
1:43AM DBG sending deploy request to the worker... func=app.(*deploy).deployAssignedTorrents torrent_hash=7103eb31f torrent_name="Yu-Gi-Oh! Shadow Game - AniLibria.TV [TVRip 720p HEVC][1-22].torrent"
1:43AM DBG worker reply accepted, authorizing... func=master.(*worker).authorizeSerivceReply worker_id=93088514-6d73-4230-83c3-0908c2bf0b8b
1:43AM DBG the worker's reply has been authorized func=master.(*worker).authorizeSerivceReply worker_id=93088514-6d73-4230-83c3-0908c2bf0b8b
1:43AM DBG got reply from the worker with written bytes func=master.(*worker).saveTorrentFile written_bytes=44183
1:43AM INF the torrent file has been sended to the worker func=app.(*deploy).deployAssignedTorrents torrent_hash=7103eb31f torrent_name="Yu-Gi-Oh! Shadow Game" worker_id=93088514-6d73-4230-83c3-0908c2bf0b8b written_bytes=44183
1:43AM INF client disconnected client=unix func=runtime.gopanic
panic: runtime error: slice bounds out of range [:8] with length 0

goroutine 10697 [running]:
github.com/MindHunter86/aniliSeeder/app.(*cmds).deployAniUpdates(0xc000570400, {0xc0004d86b8, 0x2, 0x8})
    /workspaces/repos/aniliSeeder/app/cmds.go:292 +0x1398
github.com/MindHunter86/aniliSeeder/app.(*SockServer).runClientCmd(0xc0000122d0, 0x6)
    /workspaces/repos/aniliSeeder/app/socket.go:188 +0x71f
github.com/MindHunter86/aniliSeeder/app.(*SockServer).clientRpcHandler(0xc0000122d0, {0x14c2528, 0xc0005a0740})
    /workspaces/repos/aniliSeeder/app/socket.go:99 +0xd5d
created by github.com/MindHunter86/aniliSeeder/app.(*SockServer).Serve
    /workspaces/repos/aniliSeeder/app/socket.go:53 +0x574
MindHunter86 commented 1 year ago

master