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

error: bufio.Scanner: token too long #32

Open
Dilergore opened this issue Mar 28, 2022 · 2 comments
Open

error: bufio.Scanner: token too long #32

Dilergore opened this issue Mar 28, 2022 · 2 comments

Comments

@Dilergore
Copy link

Dilergore commented Mar 28, 2022

Hello,

I am seeing an issue for a base64 encoded cert value.

The error message is:
error: bufio.Scanner: token too long

Is there a solution to this?

@jritzinsight
Copy link

jritzinsight commented Jun 7, 2022

Also having this issue - running 0.7.0

error: bufio.Scanner: token too long
node:events:505
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
Emitted 'error' event on Socket instance at:
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) ***
errno: -32,
code: 'EPIPE',
syscall: 'write'

@jritzinsight
Copy link

FYI - if anyone else comes across this open issue running into the bufio.Scanner: token too long error, there is an open PR fixing this issue in this repo located here: #25

Fork this repo, enable GitHub Actions, and snag the patch from the above PR. Open a new PR in your forked repo with the changes in the above patch, merge it, and then cut a release and just bump the version to 0.7.1 or something. You can then grab the binary from your new release in your forked repo and use it. Works great; this is how we solved the issue for our use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants