Skip to content
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 'name') #482

Closed
bfalala opened this issue Aug 14, 2024 · 8 comments
Closed

Cannot read properties of null (reading 'name') #482

bfalala opened this issue Aug 14, 2024 · 8 comments
Assignees
Labels

Comments

@bfalala
Copy link

bfalala commented Aug 14, 2024

Hello,
Since v5, my library is empty and I get this error log in docker:
playnite-web-app.csv

@github-project-automation github-project-automation bot moved this to Needs Triage 🗃️ in Playnite-Web Aug 14, 2024
@andrew-codes
Copy link
Owner

Hi, thanks for reporting the issue. What version were you running previously that was working or is v5 your first time using Playnite-Web? Also, you mentioned your library is empty. Did you previously have a filled library in the database or are you indicating that it is currently empty when this error message was produced?

@andrew-codes andrew-codes self-assigned this Aug 14, 2024
@bfalala
Copy link
Author

bfalala commented Aug 14, 2024

Hi,
I was running the last v4. I had 2700+ games in my library.
When upgrading to v5 I also decided to start clean with an empty DB because I was using the old mongodb 4.4. I'm now running v6.2. It seems the DB has been filled successfully using playnite web plugin given the size of the DB directory. The error log was produced after that when I tried to access playnite web interface and I expected to see items in it at this point.

@andrew-codes
Copy link
Owner

Ah ok. Thanks for that insight. Let me investigate further. My initial guess is that there is some piece of data that may be missing or a game/platform/etc. that has an unexpected value. Playnite-Web should handle these cases, but it may be one that I do not have in my own library for my own local testing. Determining the exact data item may be challenging given I do not have your database.

I will add some better logging in the area of the code that appears to have the issue based on your error logs. I will then push this and open a pull request. There will be an image created for that pull request that I would then ask you to use and report back with the new error logs. I will notify once the PR is ready. Thanks for your patience.

@andrew-codes
Copy link
Owner

andrew-codes commented Aug 15, 2024

Ok, so there is a PR, #487 that adds some better debug statements. Please try pulling the latest PR-487 image and run it. Please ensure the DEBUG environment variable is set to playnite*. Once running, try to again and please report back the logs. I'm hoping to identify which game release is missing some of its data. This will help me track down the why and ultimately come up with a fix. Thank you!

cc @2600box as you also reported a similar issue.

@2600box
Copy link
Contributor

2600box commented Aug 15, 2024

Here are the logs for mongo and the web app with the PR-487 image.

debug is set to playnite/*

db.log
web.log

@andrew-codes
Copy link
Owner

andrew-codes commented Aug 15, 2024

Thank you! I do see some data issues. I have just pushed a fix in the same PR image. It will now log out when a game has no source associated to it, so it will be easier to identify and correct in Playnite. It will also not fail and instead show as an unknown platform in this case.

Please try this image and report back. Assuming all goes well, I'll cut a release.

@github-project-automation github-project-automation bot moved this from In Progress ▶️ to Done ✅ in Playnite-Web Aug 15, 2024
Copy link

🎉 This issue has been resolved in version 5.0.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@2600box
Copy link
Contributor

2600box commented Aug 16, 2024

Just to follow-up, 5.0.5 showed about 3/4 of my library, but 5.1.1 shows my full library, so we are all good now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants