IronMooseDevelopment / FoundryVTT-dScryb-public

dScryb provides Boxed Text—descriptive text of places, monsters, spells, and other observations—meant to be read aloud by GMs to players. It is set in the world of epic fantasy, like many of your favorite RPGs. Good boxed text shows its subject by describing the sensory experience. And it often sets the narrative tone, introduces the scene, or spotlights what is important.
4 stars 0 forks source link

Login button not working then nothing syncs #17

Open darkjenso opened 1 month ago

darkjenso commented 1 month ago

So i seem to be getting this error with multiple versions of the module. I try to log in, nothing changes, i reload the world to see i am logged in but nothing with sync.

when i try to sync manually, this error comes up in the console

game:1 Access to fetch at 'https://dscryb.com/wp-json/jwt-auth/v1/scene?per_page=1&_fields=id' from origin '[my ip]' has been blocked by CORS policy: Request header field x-pagely-skip-ratelimit is not allowed by Access-Control-Allow-Headers in preflight response.Understand this error dscrybApi.mjs:744

   GET https://dscryb.com/wp-json/jwt-auth/v1/scene?per_page=1&_fields=id net::ERR_FAILED

_fetch @ dscrybApi.mjs:744 determineBasePath @ dscrybApi.mjs:320 loadUserInfo @ dscrybApi.mjs:378 sync @ dscrybManager.mjs:135 _updateObject @ CategorySelectionApp.mjs:56 await in _updateObject _onSubmit @ foundry.js:6665Understand this error dscrybApi.mjs:744

   Uncaught (in promise) TypeError: Failed to fetch

[Detected 1 package: dscryb(5.0.0)] at dscrybApi._fetch (dscrybApi.mjs:744:26) at dscrybApi.determineBasePath (dscrybApi.mjs:320:35) at dscrybApi.loadUserInfo (dscrybApi.mjs:378:20) at dscrybManager.sync (dscrybManager.mjs:135:42) at CategorySelectionApp._updateObject (CategorySelectionApp.mjs:56:32) at async CategorySelectionApp._onSubmit (foundry.js:6665:7)

michal-a commented 1 month ago

Looks like dscryb.com changed the CORS policy, which broke the module. I have exactly the same issue.

pervandyke commented 1 month ago

Having a similar issue, but it's on a call to https://dscryb.azurewebsites.net/api/GetActiveMemberships?code=*** The actual error that pops up is

Server error while getting Active Memberships. Please try again later.

There is also a Cross Origin Request Blocked message

Arcainne commented 1 month ago

Also seeing this CORS issue when trying to login.

image

I just bought a dScryb membership for the first time specifically to use this module. :( I'll probably need to cancel until this gets resolved.

joshuafinch commented 1 month ago

Same issue here: image

rdot89 commented 1 month ago

Same Issue on my end. Tested on both Dscryb 4.4.3 and 5.0, as well as DnD5e 3.3.1 and 4.0.4 FoundryVTT v12.331 image

rdot89 commented 1 month ago

Just going to post this here for non-discord users to be aware: devs are currently looking into the situation and aiming for a resolution ASAP... there have identified the issue and working out the kinks to avoid whole-server issues:/crashes for foundry syncing AND Opus website users: image ... image

rdot89 commented 1 month ago

Minor update, looks like a fix is moving along nicely: image

rdot89 commented 1 month ago

An update to the current issue for you all: Dscryb OPUS is now live, as part of the latest Module update (5.0.2) Heres a (more) final summary of the issue and actions taken: image

Note that this only resolves the audio library/streaming side of things... Maps and other features will be getting resolved asap: image

Another thing to be mindful of: if you update the module via Foundry's auto update button, or hit the update button (that looks like the refresh icon) on the actual module itself, it may attempt to downgrade you to 4.4.4... If this happens:

  1. Uninstall the Dscryb module
  2. Re-install the module (via foundry moulde search or using copy-pasting the json link from github)
  3. Open your world and disable to module in module management, then restart the server and re-enable it.
Arcainne commented 1 month ago

I can confirm that it works now! Thank you for the update! 🎉