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 undefined (reading 'json') #2663

Open
DankHill2020 opened this issue Nov 19, 2024 · 2 comments
Open

Cannot read properties of undefined (reading 'json') #2663

DankHill2020 opened this issue Nov 19, 2024 · 2 comments

Comments

@DankHill2020
Copy link

Error:

Cannot read properties of undefined (reading 'json')
Failed to start AboveVTT on https://www.dndbeyond.com/characters/29076498?abovevtt=true
TypeError: Cannot read properties of undefined (reading 'json')
    at DDBApi.fetchJsonWithToken (chrome-extension://ipcjcbhpofedihcloggaichibomadlei/DDBApi.js:59:26)
    at async DDBApi.fetchCampaignInfo (chrome-extension://ipcjcbhpofedihcloggaichibomadlei/DDBApi.js:184:22)
    at async start_above_vtt_common (chrome-extension://ipcjcbhpofedihcloggaichibomadlei/Startup.js:358:26)
    at async start_above_vtt_for_players (chrome-extension://ipcjcbhpofedihcloggaichibomadlei/Startup.js:456:3)

Environment:

{"avttVersion":"1.27","browser":{"name":"Chrome","version":"130","mozilla":false,"chrome":true,"msie":false,"opera":false,"safari":false}}

Other Logs:


LOG 2024-11-19T02:42:55.194Z
      showErrorMessage
      Error: DDB API Error: Unknown Error 404 
    at lookForErrors (chrome-extension://ipcjcbhpofedihcloggaichibomadlei/DDBApi.js:43:17)
    at async DDBApi.fetchJsonWithToken (chrome-extension://ipcjcbhpofedihcloggaichibomadlei/DDBApi.js:58:21)
    at async DDBApi.fetchCampaignInfo (chrome-extension://ipcjcbhpofedihcloggaichibomadlei/DDBApi.js:184:22)
    at async start_above_vtt_common (chrome-extension://ipcjcbhpofedihcloggaichibomadlei/Startup.js:358:26)
    at async start_above_vtt_for_players (chrome-extension://ipcjcbhpofedihcloggaichibomadlei/Startup.js:456:3)

ERROR 2024-11-19T02:42:55.193Z
      DDB API Error: Unknown Error 404 

ERROR 2024-11-19T02:42:55.192Z
      DDBApi.lookForErrors Failed to parse json
      {}
      {}

LOG 2024-11-19T02:42:54.153Z
      DDBApi.fetchCampaignInfo

LOG 2024-11-19T02:42:54.152Z
      startup_step Starting AboveVTT for character

LOG 2024-11-19T02:42:54.152Z
      start_above_vtt_common

LOG 2024-11-19T02:42:54.104Z
      harvest_campaign_secret found it by loading the campaign page in an iframe

ERROR 2024-11-19T02:42:53.197Z
      Failed to p
Copy link

Potential duplicates:

@Azmoria
Copy link
Collaborator

Azmoria commented Nov 19, 2024

I've seen this reported before - it's failing to get campaign data from DDB.

Few things to try

  1. Try joining from the campaign page - Make sure you're on the latest version - there was an issue after a ddb update not too long ago with getting campaign id. It may be missing the campaign id for some reason if something is changed again.

  2. Try clearing cached images and files.

As long as you don't select cookies/other site data it shouldn't clear any abovevtt data but you can take exports to be safe.

You may have to restart the browser after clearing this.

image

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

No branches or pull requests

2 participants