Skip to content

invalid byte panic when posting #1

@duckwork

Description

@duckwork

Issuing this command:

springboard post https://spring83.kindrobot.ca <<EOF
<style>body{color:yellow;background:navy;}</style>
<h1>acdw's board</h1>
<p>Yoooo, what's up.  I am here:</p>
<ul><li><a href="https://www.acdw.net">acdw.net</a></li>
<li><a href="https://breadpunk.club/~breadw">breadpunk</a></li>
<li><a href="https://acdw.casa">casa</a>
</li>
</ul>
<p>Uh,,,, I guess, stay tuned?</p>
EOF

I get this error:

panic: encoding/hex: invalid byte: U+009F

goroutine 1 [running]:
github.com/motevets/s83/pkg/springboard.GetKeys({0x0?, 0xc00002c000?})
	/home/runner/work/springboard/springboard/pkg/springboard/keys.go:51 +0x24d
github.com/motevets/s83/pkg/springboard.Client.SignAndPostBoard({{0x7ffe471e425b?, 0xc00000e010?}}, {0xc00019c000, 0x13f, 0x0?}, {0x0?, 0x1007fd4c657b6d0?})
	/home/runner/work/springboard/springboard/pkg/springboard/client.go:66 +0x65
main.post()
	/home/runner/work/springboard/springboard/cmd/springboard/main.go:104 +0x167
main.main()
	/home/runner/work/springboard/springboard/cmd/springboard/main.go:20 +0xf0

I'm using version 2.3.0 on Debian 11. The board I was posting is in the command above.

Fixed: Needed to generate a key first

After generating a key, it worked fine. I'm still posting this issue because I figure issuing a panic when a key isn't present is bad UX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions