Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Crash in GetSentenceTimestamps when doing transcribe/get #79

Open
andreyvit opened this issue Feb 13, 2023 · 2 comments
Open

Crash in GetSentenceTimestamps when doing transcribe/get #79

andreyvit opened this issue Feb 13, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@andreyvit
Copy link

When transcribing a video, cli has crashed with a traceback; doing assemblyai get crashed in exactly the same spot:

$ assemblyai get rptv3lsl5w-8310-4944-a086-d49f5e5a26b5                                                                                         2
Transcribing file with id rptv3lsl5w-8310-4944-a086-d49f5e5a26b5
Transcript
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/AssemblyAI/assemblyai-cli/utils.GetSentenceTimestamps({0x140006be000?, 0x29c, 0x101222b01?}, {0x14001214000, 0x7507, 0x100f36908?})
	/home/runner/work/assemblyai-cli/assemblyai-cli/utils/utils.go:272 +0x634
github.com/AssemblyAI/assemblyai-cli/utils.textPrintFormatted({0x1400033c000, 0x26686}, {0x14001214000, 0x7507, 0xa005})
	/home/runner/work/assemblyai-cli/assemblyai-cli/utils/transcribe.go:339 +0x114
github.com/AssemblyAI/assemblyai-cli/utils.getFormattedOutput({0x14000332ae0, 0x14000405788, 0x0, 0x0, 0x14000332b10, 0x140004057ac, 0x1400040579a, 0x0, {0x0, 0x0}, ...}, ...)
	/home/runner/work/assemblyai-cli/assemblyai-cli/utils/transcribe.go:298 +0xcc
github.com/AssemblyAI/assemblyai-cli/utils.PollTranscription({0x16ef9f72f, 0x26}, {0x0?, 0x0?})
	/home/runner/work/assemblyai-cli/assemblyai-cli/utils/transcribe.go:280 +0x2d0
github.com/AssemblyAI/assemblyai-cli/cmd.glob..func2(0x101679460?, {0x140000694b0?, 0x1?, 0x1?})
	/home/runner/work/assemblyai-cli/assemblyai-cli/cmd/get.go:45 +0x124
github.com/spf13/cobra.(*Command).execute(0x101679460, {0x14000069490, 0x1, 0x1})
	/home/runner/work/assemblyai-cli/assemblyai-cli/vendor/github.com/spf13/cobra/command.go:876 +0x4b8
github.com/spf13/cobra.(*Command).ExecuteC(0x1016796e0)
	/home/runner/work/assemblyai-cli/assemblyai-cli/vendor/github.com/spf13/cobra/command.go:990 +0x354
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/work/assemblyai-cli/assemblyai-cli/vendor/github.com/spf13/cobra/command.go:918
github.com/AssemblyAI/assemblyai-cli/cmd.Execute()
	/home/runner/work/assemblyai-cli/assemblyai-cli/cmd/root.go:42 +0xa8
main.main()
	/home/runner/work/assemblyai-cli/assemblyai-cli/main.go:11 +0x1c

You've got transcription ID right in there, so please investigate.

macOS 13.2, AssemblyAI CLI v1.14.2.

@andreyvit andreyvit added the bug Something isn't working label Feb 13, 2023
@albtsantos
Copy link
Contributor

Thanks for the report, @andreyvit! We'll look into it.

@albtsantos
Copy link
Contributor

Hey @andreyvit! The issue you reported should be fixed. Do you mind giving it another try?

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

No branches or pull requests

3 participants