Skip to content

Fail to load Github Gist URL in LH Viewer with 401 error. #13698

@eldk

Description

@eldk

FAQ

URL

https://googlechrome.github.io/lighthouse/viewer/?gist=baaa39224f646469ed69e97473421e54

What happened?

Lighthouse Report viewer reports a 401 fetching gist when trying to fetch : https://googlechrome.github.io/lighthouse/viewer/?gist=baaa39224f646469ed69e97473421e54

Github Gist url : https://gist.github.com/eldk/baaa39224f646469ed69e97473421e54

NB : Saving as Gist from Lighthouse Report Viewer fails with a 401 auth error too.

What did you expect?

LightHouse Report Viewer display anonymously (without the need to have a Github account and be logged in) the related Github/Gist stored report as featured here : https://developers.google.com/web/tools/lighthouse#gists a

What have you tried?

It was OK a few months ago : change nothing : Gist is public

It's OK when view the report in https://googlechrome.github.io/lighthouse/viewer/ called from the https://web.dev/measure/ page link : https://web.dev/measure/#

web dev_measure_

But I'm not sure this an issue.

How were you running Lighthouse?

web.dev

Lighthouse Version

Generated by Lighthouse 9.3.0

Chrome Version

Version 98.0.4758.102 (Build officiel) (64 bits)

Node Version

No response

OS

Ubuntu 20.04 - Desktop - core-11.1.0ubuntu2-noarch:printing-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch

Relevant log output

Chrome console logs :

Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'.
main-275a0384.js:1343          GET https://api.github.com/gists/baaa39224f646469ed69e97473421e54 401
(anonymous) @ main-275a0384.js:1343
Promise.then (async)
(anonymous) @ main-275a0384.js:1343
Promise.then (async)
getGistFileContentAsJson @ main-275a0384.js:1343
_loadFromDeepLink @ main-275a0384.js:1598
ua @ main-275a0384.js:1598
(anonymous) @ main-275a0384.js:1603
main-275a0384.js:17 Uncaught Error: 401 fetching gist
    at main-275a0384.js:17:1216
(anonymous) @ main-275a0384.js:17
setTimeout (async)
error @ main-275a0384.js:17
(anonymous) @ main-275a0384.js:1598
Promise.catch (async)
_loadFromDeepLink @ main-275a0384.js:1598
ua @ main-275a0384.js:1598
(anonymous) @ main-275a0384.js:1603

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions