You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked all open bugs and none of them matched my problem.
Reproducible test case
No response
Please select the environment(s) that are relevant to your bug report
Browsers
Node
Deno
Versions
1.3.2
What happened?
When running e.g. project.items.list() but the project cannot be found, an unhelpful error is currently thrown.
github-project/api/lib/get-state-with-project-items.js:32
projectNext.fields.nodes
^
TypeError: Cannot read properties of null (reading 'fields')
at getStateWithProjectItems (github-project/api/lib/get-state-with-project-items.js:32:17)
at async listItems (github-project/api/items.list.js:13:26)
at async updateMemex (file:///Users/gregor/code/github/how-we-work-booster-pack/scripts/update-memex.js:88:17)
at async run (file:///Users/gregor/code/github/how-we-work-booster-pack/scripts/update-memex.js:62:5)
Would you be interested in contributing a fix?
yes
The text was updated successfully, but these errors were encountered:
Code looks good, but instead of instantiating GitHubProjectError, I would create a new error class specific to this error, like we do for other errors as well.
Please avoid duplicates
Reproducible test case
No response
Please select the environment(s) that are relevant to your bug report
Versions
1.3.2
What happened?
When running e.g.
project.items.list()
but the project cannot be found, an unhelpful error is currently thrown.Would you be interested in contributing a fix?
The text was updated successfully, but these errors were encountered: