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 properties of null (reading 'id')

See original GitHub issue

Hello. I’m trying to use this action and receive the following error

image

2022-05-13T07:23:46.6339635Z Requested labels: ubuntu-latest
2022-05-13T07:23:46.6339681Z Job defined at: FlowCrypt/flowcrypt-android/.github/workflows/add-opened-issue-to-project.yml@refs/heads/master
2022-05-13T07:23:46.6339707Z Waiting for a runner to pick up this job...
2022-05-13T07:23:47.2172502Z Job is waiting for a hosted runner to come online.
2022-05-13T07:23:52.4694607Z Job is about to start running on the hosted runner: Hosted Agent (hosted)
2022-05-13T07:23:55.8276512Z Current runner version: '2.291.1'
2022-05-13T07:23:55.8302372Z ##[group]Operating System
2022-05-13T07:23:55.8303003Z Ubuntu
2022-05-13T07:23:55.8303299Z 20.04.4
2022-05-13T07:23:55.8303583Z LTS
2022-05-13T07:23:55.8303857Z ##[endgroup]
2022-05-13T07:23:55.8304229Z ##[group]Virtual Environment
2022-05-13T07:23:55.8304618Z Environment: ubuntu-20.04
2022-05-13T07:23:55.8304968Z Version: 20220508.1
2022-05-13T07:23:55.8305471Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20220508.1/images/linux/Ubuntu2004-Readme.md
2022-05-13T07:23:55.8306152Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20220508.1
2022-05-13T07:23:55.8306655Z ##[endgroup]
2022-05-13T07:23:55.8307026Z ##[group]Virtual Environment Provisioner
2022-05-13T07:23:55.8307358Z 1.0.0.0-main-20220421-1
2022-05-13T07:23:55.8307705Z ##[endgroup]
2022-05-13T07:23:55.8308709Z ##[group]GITHUB_TOKEN Permissions
2022-05-13T07:23:55.8309313Z Actions: write
2022-05-13T07:23:55.8309792Z Checks: write
2022-05-13T07:23:55.8310156Z Contents: write
2022-05-13T07:23:55.8310490Z Deployments: write
2022-05-13T07:23:55.8310841Z Discussions: write
2022-05-13T07:23:55.8311171Z Issues: write
2022-05-13T07:23:55.8311442Z Metadata: read
2022-05-13T07:23:55.8311797Z Packages: write
2022-05-13T07:23:55.8312135Z Pages: write
2022-05-13T07:23:55.8312417Z PullRequests: write
2022-05-13T07:23:55.8312778Z RepositoryProjects: write
2022-05-13T07:23:55.8313172Z SecurityEvents: write
2022-05-13T07:23:55.8313509Z Statuses: write
2022-05-13T07:23:55.8313795Z ##[endgroup]
2022-05-13T07:23:55.8317337Z Secret source: Actions
2022-05-13T07:23:55.8317841Z Prepare workflow directory
2022-05-13T07:23:55.9143414Z Prepare all required actions
2022-05-13T07:23:55.9326135Z Getting action download info
2022-05-13T07:23:56.1417635Z Download action repository 'actions/add-to-project@v0.0.3' (SHA:7a0820f97673dfefc999713a9a6d6b7ee128bba5)
2022-05-13T07:23:56.9766461Z ##[group]Run actions/add-to-project@v0.0.3
2022-05-13T07:23:56.9766857Z with:
2022-05-13T07:23:56.9767200Z   project-url: https://github.com/orgs/FlowCrypt/projects/1
2022-05-13T07:23:56.9767786Z   github-token: ***
2022-05-13T07:23:56.9768055Z ##[endgroup]
2022-05-13T07:23:57.3977728Z ##[error]Cannot read properties of null (reading 'id')
2022-05-13T07:23:57.4226810Z Cleaning up orphan processes

My configuration https://raw.githubusercontent.com/FlowCrypt/flowcrypt-android/master/.github/workflows/add-opened-issue-to-project.yml

name: Add an opened issue to the project
# https://github.com/marketplace/actions/add-to-github-projects-beta
on:
  issues:
    types:
      - opened

jobs:
  add-to-project:
    name: Add issue to project
    runs-on: ubuntu-latest
    steps:
      - uses: actions/add-to-project@v0.0.3
        with:
          project-url: https://github.com/orgs/FlowCrypt/projects/1
          github-token: ${{ secrets.FLOWCRYPT_ROBOT_ACCESS_TOKEN }}

Maybe somebody knows what is wrong

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
amacneilcommented, Jul 21, 2022

Thank you.

We had both project and repo scopes, but were still getting the Cannot read properties of null (reading 'id') error.

However, I realized it was because our bot user had not been added to the project 😞

It’s working now.

2reactions
mattcosta7commented, Jul 20, 2022

Why does this project need admin:org permission? That is not documented in the readme.

It should not anymore.

Prior to the projects scoped tokens it was required. The deprecated projectsNext graphql queries required it.

Since the projectsV2 queries replaced it, and tokens with project scope were made available, this is no longer necessary

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read properties of null (reading 'id')
The error says that the guild variable is empty doesn't have a value null and when you do guild.id you're trying to access...
Read more >
TypeError: Cannot read property 'value' of Null in JS
To solve the "Cannot read property 'value' of null" error, make sure that the JS script tag is placed at the bottom of...
Read more >
Uncaught TypeError: Cannot read property of null - iDiallo
This error occurs when you read a property or call a method on a null object . That's because the DOM API returns...
Read more >
Cannot read properties of undefined (reading 'id') - TrackJS
In this case, our code expects to have an object with a id property, but that object was not present.
Read more >
[Cannot read properties of null (reading 'recordTypeId')] error ...
[Cannot read properties of null (reading 'recordTypeId')] error shows when accessing a report. ... GROUP ROWS: Account ID
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