charmbracelet / charmbracelet/vhs

panic: Get "http://127.0.0.1:63299/json/version": dial tcp 127.0.0.1:63299: connect: connection refused

Open
#232 26 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
20.9k
Forks
474
Avg merge
4d 1h
Merged PRs (30d)
2

Description

Tried to follow the tutorial and got this error. I'm on WSL Fedora 37, installed `vhs` and `ttyd` trough `brew`. `ttyd` is working fine.

```bash
panic: Get "http://127.0.0.1:63299/json/version": dial tcp 127.0.0.1:63299: connect: connection refused

goroutine 1 [running]:
github.com/go-rod/rod/lib/utils.glob..func2({0xdf2b40?, 0xc000467110?})
github.com/go-rod/rod@v0.112.0/lib/utils/utils.go:60 +0x25
github.com/go-rod/rod/lib/utils.E(...)
github.com/go-rod/rod@v0.112.0/lib/utils/utils.go:66
github.com/go-rod/rod/lib/launcher.(*Launcher).MustLaunch(0xc000197030?)
github.com/go-rod/rod@v0.112.0/lib/launcher/launcher.go:351 +0x67
main.New()
github.com/charmbracelet/vhs/vhs.go:91 +0x2e5
main.Evaluate({0x1481120, 0xc000426b00}, {0xc0001af500, 0x923}, {0x147cbc0, 0xc000014018}, {0xc0005bfcd0, 0x1, 0x0?})
github.com/charmbracelet/vhs/evaluator.go:25 +0x1a5
main.glob..func1(0x1a6c260, {0x1ac0210, 0x0, 0x0?})
github.com/charmbracelet/vhs/main.go:67 +0x24a
github.com/spf13/cobra.(*Command).execute(0x1a6c260, {0xc000024230, 0x0, 0x0})
github.com/spf13/cobra@v1.6.1/command.go:916 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0x1a6c260)
github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.6.1/command.go:968
github.com/spf13/cobra.(*Command).ExecuteContext(...)
github.com/spf13/cobra@v1.6.1/command.go:961
main.main()
github.com/charmbracelet/vhs/main.go:186 +0xf1
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the tutorial on WSL Fedora 37 with the Homebrew-installed vhs and ttyd, then inspect main.New in vhs.go around line 91 and the Rod launcher call shown in the trace. Done means the tutorial command no longer panics with a connection-refused error and establishes the browser connection.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.