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.

Cannot read property '0' of null

See original GitHub issue

I tried out the minimal config from the README on a private repository in an organisation and the action fails with this output:

Error: Cannot read property '0' of null

I tried this both @master and @v2.0.0 with the same result.

Full log
2021-04-16T10:34:26.3292395Z ##[section]Starting: Request a runner to run this job
2021-04-16T10:34:27.0628947Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
2021-04-16T10:34:27.0629208Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2021-04-16T10:34:27.0629439Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2021-04-16T10:34:27.1952907Z ##[section]Finishing: Request a runner to run this job
2021-04-16T10:34:34.4388757Z Current runner version: '2.277.1'
2021-04-16T10:34:34.4419724Z ##[group]Operating System
2021-04-16T10:34:34.4420691Z Ubuntu
2021-04-16T10:34:34.4421220Z 20.04.2
2021-04-16T10:34:34.4421648Z LTS
2021-04-16T10:34:34.4422169Z ##[endgroup]
2021-04-16T10:34:34.4422777Z ##[group]Virtual Environment
2021-04-16T10:34:34.4423628Z Environment: ubuntu-20.04
2021-04-16T10:34:34.4424426Z Version: 20210412.1
2021-04-16T10:34:34.4425448Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20210412.1/images/linux/Ubuntu2004-README.md
2021-04-16T10:34:34.4426926Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20210412.1
2021-04-16T10:34:34.4427828Z ##[endgroup]
2021-04-16T10:34:34.4429910Z ##[group]GITHUB_TOKEN Permissions
2021-04-16T10:34:34.4431400Z Actions: write
2021-04-16T10:34:34.4431921Z Checks: write
2021-04-16T10:34:34.4432526Z Contents: write
2021-04-16T10:34:34.4433257Z Deployments: write
2021-04-16T10:34:34.4434183Z Issues: write
2021-04-16T10:34:34.4434764Z Metadata: read
2021-04-16T10:34:34.4435283Z Packages: write
2021-04-16T10:34:34.4435919Z PullRequests: write
2021-04-16T10:34:34.4436737Z RepositoryProjects: write
2021-04-16T10:34:34.4437417Z SecurityEvents: write
2021-04-16T10:34:34.4437958Z Statuses: write
2021-04-16T10:34:34.4438634Z ##[endgroup]
2021-04-16T10:34:34.4441982Z Prepare workflow directory
2021-04-16T10:34:34.5211851Z Prepare all required actions
2021-04-16T10:34:34.5223552Z Getting action download info
2021-04-16T10:34:34.9737428Z Download action repository 'flowwer-dev/pull-request-stats@v2.0.0'
2021-04-16T10:34:37.1376039Z ##[group]Run flowwer-dev/pull-request-stats@v2.0.0
2021-04-16T10:34:37.1377073Z with:
2021-04-16T10:34:37.1377996Z   token: ***
2021-04-16T10:34:37.1378621Z   period: 30
2021-04-16T10:34:37.1379115Z   charts: false
2021-04-16T10:34:37.1379583Z   sort-by: REVIEWS
2021-04-16T10:34:37.1380172Z   disable-links: false
2021-04-16T10:34:37.1380669Z ##[endgroup]
2021-04-16T10:34:43.8101642Z ##[error]Cannot read property '0' of null
2021-04-16T10:34:43.9540679Z Cleaning up orphan processes

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
robin-wayvecommented, Apr 19, 2021

That worked, thanks for the fast turnaround! 🙇

1reaction
manuelmhtrcommented, Apr 17, 2021

@robin-wayve I think I found the problem. The avatar URIs for bots are different from the ones for users; I guess you have some bot doing pull requests in your repo and that caused the problem.

Could you please try running the action using the dev branch instead of master?

Let me know if that works and I’ll clean everything to launch a 2.0.1 version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property *0* of null - javascript - Stack Overflow
This means that either you have a typo in your selector or the html or the js gets executed before your element is...
Read more >
TypeError: Cannot read Property '0' of Null in JavaScript
The "Cannot read property '0' of null" error occurs when trying to access the 0th index on a variable that stores a null...
Read more >
How To Fix Cannot read Property '0' of Undefined in JS
The Solution · Ensure you are using the correct variable · Perform a simple check on your variable before using it to make...
Read more >
Cannot read property 0 or null javascript error.
"can not read property 0" means "lookupfield.getValue()" is null, which means your lookup field may not contians value. About how to use js...
Read more >
How to Prevent the Error: Cannot Read Property '0' of Undefined
A guide on how to prevent the error "cannot Read Property '0' of Undefined", covering techniques such as try, catch, using const over...
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