MrPrimate / ddb-importer

Integrate your dndbeyond.com content into Foundry virtual tabletop
MIT License
186 stars 72 forks source link

Upgraded YTT to v11 and getting Cannot read properties of undefined (reading '0') #406

Open ashcroftcloud opened 9 months ago

ashcroftcloud commented 9 months ago

Describe the bug Just updated to latest version of VTT. Disabled all macros and uninstalled any reporting errors. enabled DndBeyond Importer and attempted to import character, got error an import failed.

To Reproduce Steps to reproduce the behavior:

  1. Opened existing character (also tried with new)
  2. Clicked on dndbeyond button
  3. start import
  4. Cannot read properties of undefined (reading '0')

Expected behavior Character should import.

Environment:

Additional context Add any other context about the problem here.

MrPrimate commented 9 months ago

This is coming from Foundry. It is likely that you are using an incorrect version of node, or updated the latest version without a proper new install of the code.

ashcroftcloud commented 9 months ago

Thanks, I’ll try a fresh install.Paul Ashcroft On 9 Oct 2023, at 03:44, Jack Holloway @.***> wrote: This is coming from Foundry. It is likely that you are using an incorrect version of node, or updated the latest version without a proper new install of the code.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

combsjy commented 7 months ago

Just another datapoint. I ran into this same error. I am running from a docker container using the image node:16-alpine. I updated from v10 to v11 and then ran into this error. I build my docker image with the foundry application as a volume mount. I was able to blow away the contents of the application volume and recreate it from a fresh download and I no longer see the issue.

jhutchings1 commented 3 months ago

I've run into this same issue today. I clean installed my server, and made sure I am using Node 18. @MrPrimate do you have any other suggestions on how to debug this one?

MrPrimate commented 3 months ago

I've run into this same issue today. I clean installed my server, and made sure I am using Node 18. @MrPrimate do you have any other suggestions on how to debug this one?

Make sure that your not using the app files from a previous install, you'll need to delete and then extract them a new.

Another gotcha is to make sure the node your app is using is definitely v18 and not a system default

jhutchings1 commented 3 months ago

That worked. Thanks! I had previously copied over the old directory, but moving to an entirely clean directory fixed it. ✨

sunian commented 1 month ago

@jhutchings1 I am also encountering this exact issue after upgrading to v11. What exactly were the app files you copied over? And where did you put the clean directory? Can you provide some more details on what your fix was? Thank you!

jhutchings1 commented 1 month ago

@sunian delete everything in your current app directory, and then unzip a fresh download of Foundry to that directory.

tmaestrelli commented 1 month ago

@jhutchings1 I'm facing the same problem as the others, but I'm using linux to have the application in cloud. I did a clean install of v11 but used the old world in the new version. By my experience with a similar problem I had with the world.json port, Foundry currently is not accepting the "&" caracter anywhere (you can't even put it on the chat), and worlds will not load if this character is in the world description. It is possible that other special characters that I'm not aware may also trigger the reading '0' error. I'm using last version of node since I just run a upgrade and update on apt. So, the direction is to go back to Node 18? Thank you

MrPrimate commented 1 month ago

@tmaestrelli I believe it should work with newer versions of node, but it definitely works with 18. Remember as well, that if your calling foundry as a service or similar that it is also using that version of node and not a system default.

Mostly though, this tends to be because the foundry app folder has been copied over an existing one, or the update downloaded inside foundry when a new install was required.