-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read properties of null (reading '__typename') #85
Comments
@NobleDraconian Thanks for reaching out! That's strange. Would you be able to re-run in verbose mode ( |
Each of our commands' handlers is wrapped with an error handler, `actionErrorHandler`, which logs the error message in red and then exits with status code `1`. An error's message is not necessarily super helpful - as seen with the `Cannot read properties of null (reading '__typename')` error in #85. This additionally logs the stack trace, giving more context on what went wrong and where.
I've just released v0.4.3 which will produce better error messages in cases like this (see #94) - can I suggest that you upgrade before you try again? |
Hi @timrogers! I updated the tool and ran the import command again. I was not able to reproduce the error I originally had, however I encountered another error: |
That's interesting 🤔 It seems like there is a bug with some field types or values. I think that you should be able to see which project item it was trying to load if you look at the log output. Would you be able to find that project item in the JSON file and send me the data to help me debug? You can email the address on my profile if you don't want to share it publicly. |
Here's the json you requested: {
"content": {
"__typename": "Issue",
"title": "Change towers instead of speeding up the timer depending on the amount of players who have completed the tower",
"number": 519,
"repository": {
"nameWithOwner": "PhoenixEntertainment/Project-Walljump"
}
},
"fieldValues": {
"nodes": [
{
"__typename": "ProjectV2ItemFieldUserValue"
},
{
"__typename": "ProjectV2ItemFieldRepositoryValue"
},
{
"__typename": "ProjectV2ItemFieldLabelValue"
},
{
"__typename": "ProjectV2ItemFieldMilestoneValue"
},
{
"__typename": "ProjectV2ItemFieldTextValue",
"text": "Change towers instead of speeding up the timer depending on the amount of players who have completed the tower",
"field": {
"id": "PVTF_lAHOAZPDDM4ACibEzgBd3QU",
"name": "Title"
}
},
{
"__typename": "ProjectV2ItemFieldSingleSelectValue",
"field": {
"id": "PVTSSF_lAHOAZPDDM4ACibEzgBd3Qc",
"name": "Status"
},
"optionId": "4f787606"
}
],
"totalCount": 6
},
"isArchived": false,
"type": "ISSUE",
"id": "PVTI_lAHOAZPDDM4ACibEzgBYGEk"
}, |
@NobleDraconian Thank you! In the log output, I think it should tell you which field value is was trying to load. Can you take a look at the logs again? |
@timrogers |
@NobleDraconian Thanks! That's very strange. Would you be open to doing a Zoom call at some point to look into this? I'd like to debug, but it's hard in text form! |
@timrogers Do you have a discord? Discord would probably be easier, but I can do zoom if needed. |
I'm afraid that I don't. Is it okay if I email you at the address on your profile? |
@timrogers Yep, you are free to email me |
@NobleDraconian Sorry that we didn't get a chance to meet yet 😓 I'm on vacation this week, but I was wondering if you might be willing to try with the newly-released v0.6.0? |
Hi @timrogers! Sorry for the late response, had holiday stuff going on. I'll try the new release later today! |
I'm going to close this as I haven't heard back from you, but feel free to add a comment if you still need help. |
Currently, when trying to export or import a project, this tool errors with the following error:
The text was updated successfully, but these errors were encountered: