question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues with default outputting of specific sites

See original GitHub issue

I was trying to use this on www.puredevelopment.com and it throws an error. I tried it on a separate site and it worked fine. I then started digging and found that if I got to /lib/output.js and comment out opportunities(lighthouseResults) [line 106] it works fine for me.

Here is the error that I got

(node:9032) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'type' of undefined
    at rules.filter.rule (C:\Users\eric\Documents\Projects\2020\ferg-psi-action\node_modules\psi\lib\output.js:73:20)
    at Array.filter (<anonymous>)
    at opportunities (C:\Users\eric\Documents\Projects\2020\ferg-psi-action\node_modules\psi\lib\output.js:71:34)
    at Promise.resolve.then (C:\Users\eric\Documents\Projects\2020\ferg-psi-action\node_modules\psi\lib\output.js:106:7)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:9032) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:9032) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
crstaufcommented, Nov 9, 2020

This is happening for me as well, on version 4.0.1. I just started using psi today, so I’ve no context on whether it was working previously. Ran psi https://puredevelopment.com to confirm, and received the error.

0reactions
edm00secommented, Dec 17, 2020

Same here @crstauf.

Running both npx psi https://puredevelopment.com and npx GoogleChromeLabs/psi https://puredevelopment.com yield the same error output of TypeError: Cannot read property 'metrics' of undefined; I’m seeing the same behavior for other sites. IMO this issue should be reopened.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Edge switching from default sound output device to specific ...
Switching the output option back to default device will route the sound properly. I see the same issue here (Edge is playing video...
Read more >
Windows 10 scaling default above 100% causing website ...
After a bit of research, it looks like a recommended and default scaling above 100% is not unusual on some laptops (especially newer...
Read more >
Chrome browser - set specific audio output device - Super User
By default chrome uses the default audio device (related question here: Configure the audio output of chrome). But my question is: How would ......
Read more >
Chrome not using default audio device - Google Support
I have issues with chrome randomly deciding to change which device its using for audio. I can watch 1 youtube video and it...
Read more >
Common Microsoft Edge Problems, and How to Fix Them
If you are trying to log in to sites that require passwords and Edge is spitting you back out, the problem could be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found