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

TypeError when attempting to import a JournalEntry document. #57

Open
linkshadowelf opened this issue Sep 5, 2022 · 2 comments
Open
Labels
bug Functionality which is not working as intended

Comments

@linkshadowelf
Copy link

Foundry v10 Build 284
Integration v1.4.0

When importing any single document or importing any category the below error message triggers in the console. Additionally, when selecting Sync, nothing happens despite claiming it was successful.

Clean world install using multiple systems/worlds with no other modules running.

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'replace')
at createImagePage (framework.js:471:39)
at addJournalImagePages (framework.js:491:5)
at getArticleContent (framework.js:368:3)
at importArticle (framework.js:116:17)
at async WorldAnvilBrowser._importCategory (journal.js:373:7)

@aaclayton aaclayton changed the title TypeError when attempting to import any document TypeError when attempting to import a JournalEntry document. Sep 5, 2022
@aaclayton aaclayton added the bug Functionality which is not working as intended label Sep 5, 2022
@adrien-schiehle
Copy link
Collaborator

Hello,
The problem comes from the article cover.
It seems the API with WA has changed when retrieving cover url.

I've sent a message to WA developpers to understand how we need to retrieve them now.

I will publish a fix tomorrow so that you won't be stuck because of this. But the retrieval of article cover will need to wait the end of the discussion with WA developpers.
Sorry about that.

@adrien-schiehle
Copy link
Collaborator

The cover is back!
You just have to sync the related article again. No further patch needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality which is not working as intended
Projects
None yet
Development

No branches or pull requests

3 participants