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

Stream did not contain valid UTF-8 #179

Closed
vipulgupta2048 opened this issue Jan 26, 2023 · 4 comments
Closed

Stream did not contain valid UTF-8 #179

vipulgupta2048 opened this issue Jan 26, 2023 · 4 comments

Comments

@vipulgupta2048
Copy link
Contributor

vipulgupta2048 commented Jan 26, 2023

Getting this error when running Lychee action with latest commit.

Run lycheeverse/lychee-action@0682ed617509a52424db04e7502c1dc3df28b469
Run curl -sLO 'https://github.com/lycheeverse/lychee/releases/download/v0.10.3/lychee-v0.10.3-x86_64-unknown-linux-gnu.tar.gz'
lychee
Run /home/runner/work/_actions/lycheeverse/lychee-action/0682ed617509a52424db04e7502c1dc3df28b469/entrypoint.sh
Error: Cannot read input content from file `build/dist/4692b9ec53fd5972caa2f[23](https://github.com/balena-io/docs/actions/runs/4017728572/jobs/6902452065#step:6:25)72ae20d16.ttf`

Caused by:
    stream did not contain valid UTF-8
No output. Check pipeline run to see if lychee panicked.

https://github.com/balena-io/docs/actions/runs/4017728572/jobs/6902452065

@mre
Copy link
Member

mre commented Jan 27, 2023

It should not read image files. There's an open issue for that: lycheeverse/lychee#410.
For now the workaround is to exclude that file type from the run. 😕
You can use --exclude-path for that.

@vipulgupta2048
Copy link
Contributor Author

vipulgupta2048 commented Jan 29, 2023

Thanks @mre Trying it out now. An update, I recently discovered the base URL feature and it turns out we were not scanning any of our relative links (About 50k 🥵 ) So with caching, duplicate reduction, excluding links and accepting status codes. We would be scanning about 70k links with this update.

Thanks for this amazing tool!

@mre
Copy link
Member

mre commented Jan 29, 2023

That's quite impressive. Thanks for letting us know. 🚀

@vipulgupta2048
Copy link
Contributor Author

The workaround resolved this. Thanks @mre

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