eXaminator / kanka-foundry

FoundryVTT module to import information from kanka.io
MIT License
22 stars 9 forks source link

Infinite Loading #113

Closed antoniohbmonteiro closed 10 months ago

antoniohbmonteiro commented 1 year ago

Foundry 291 Kanka-foundry updated

i getting infinite loading when opening import screen

eXaminator commented 1 year ago

Hey,

I can't seem to be able to replicate this bug. Has it worked for you before? Did it break with an update?

I would like you to verify the following things for me:

  1. Check that Kanka-Foundry us uptodate
  2. If you are running in a browser, make sure you are fully reloading foundry while a world is loaded (usually Shift + F5 on windows)
  3. If the problem still persists, please check if there are any red errors in the console (usually F12 on windows in most browsers), either when loading into your world or after klicking the kanka button.
antoniohbmonteiro commented 1 year ago

1 Yes is up to date 2 tried that 3 no, none red erros

I opened a new world, no module only kanka-foundry, no red erros

image

eXaminator commented 1 year ago

This is strange. Ok, I might need you to dig a little deeper.

When you have the console open, please click on the "network" tab. Then, after doing that, reload your browser window. Give it a moment to load everything (you should see a ton of requests in the network tab). Then click the kanka button again. You should see a couple of new requests at the end of list in the network tab that look something like this (the amount depends on the number of entries in your kanka campaign):

image

These are the requests the module makes to Kanka to show you the list of entities you can import. Ignore the ones that say "preflight". You should see that the requests saying "fetch" responded successfully (I hope) with a code "200" somewhere. If you click on an entry (e.g. the first one) in the list, you should get some more details, including a "response" tab where you should see some data where you should recognize your entries from kanka. Something like this:

image

Please let me know if that seems to work. If not, let me know what exactly you see (any errors etc.).

Also, just to make sure: Please check, that you have set a valid Kanka token in the module settings. They expire after a while (I think a year or so), so if you have been using the module for a while you might need to create a new one. Though the module SHOULD give you a notification before it expires and also a proper error message after it expired.

Kronos25 commented 1 year ago

+1 - also getting this error

EDIT: Works fine on my D&D 5E campaign, but not on my PF2E campaign

eXaminator commented 10 months ago

I know this issue has been around for a while now. Would any of you mind checking out the latest release candidate and see if you still see the error? You will have to install it directly via the manifest link because it's only a prerelease and not listed in Foundry yet.

Please make a backup of your world before updating to the latest version as it changes a lot of stuff, especially the sheets and their data.

Here's the link: https://github.com/eXaminator/kanka-foundry/releases/download/4.0.0-rc.1/module.json

Kronos25 commented 10 months ago

I know this issue has been around for a while now. Would any of you mind checking out the latest release candidate and see if you still see the error? You will have to install it directly via the manifest link because it's only a prerelease and not listed in Foundry yet.

Please make a backup of your world before updating to the latest version as it changes a lot of stuff, especially the sheets and their data.

Here's the link: https://github.com/eXaminator/kanka-foundry/releases/download/4.0.0-rc.1/module.json

I can confirm it's working now. Thank you for your hard work!

eXaminator commented 10 months ago

I'll close this now. Please open a new issue if you still have problems with it.