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

data:image/png;base64 => ERR_INVALID_URL #11429

Closed
black-snow opened this issue Sep 13, 2020 · 4 comments
Closed

data:image/png;base64 => ERR_INVALID_URL #11429

black-snow opened this issue Sep 13, 2020 · 4 comments

Comments

@black-snow
Copy link

Provide the steps to reproduce

  1. Run LH on a page containing:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42‌​mNgYAAAAAMAASsJTYQAAAAASUVORK5CYII=" alt="" />

What is the current behavior?

Failed to load resource: net::ERR_INVALID_URL

 

What is the expected behavior?

No such error logged.

Environment Information

  • Affected Channels: devtools
  • Lighthouse version: 6.0.0
  • Chrome version: 85.0.4183.102
  • Node.js version: ?
  • Operating System: Win 10 64bit

Related issues

@patrickhulce
Copy link
Collaborator

Thanks for filing @black-snow! That is an invalid URL though and Chrome itself logs this error. There are invisible unicode characters in between EQVR42 and mNgYAA. If you remove those invalid characters, the proper 1x1 PNG renders as expected without the error in the console.

@black-snow
Copy link
Author

Oh, will give it a shot and report back

@black-snow
Copy link
Author

yep, that did the trick, thanks for spotting it

@PavithraEr
Copy link

I do have the same issue. can you suggest some solution?

Test

and error in the final output we have attached the file. Please help me.

CompOff Request From Mahesh Ananth K.zip

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

No branches or pull requests

5 participants