Can't use dumper/CAI issue #2

Open
opened 2023-04-07 09:25:20 +02:00 by MLGPROGAMER · 1 comment

After extensive dumb testing I can't seem to retrieve CAI chat histories any longer.

The issue(s) being:

  • CAI does not load the "View Saved Chats" page after refreshing (chat histories are still visible when the page is loaded from a current chat).
  • The dumper does not display the download link until the "View Saved Chats" page is refreshed

Combined, these issues make it impossible to download CAI chat histories. It seems like the chat histories are cached when loading into the "View Saved Chats" page for the first time (according to the console), but it never spits out a download link at the top like it's supposed to.

Tested the issue using a few different parameters.

  • All CAI characters seem to fail loading after refreshing.
  • The browsers librewolf, palemoon and waterfox all have this issue.
  • Issue present with or without scripts enabled. Swapping between violentmonkey and tampermonkey didn't change anything either.
After extensive dumb testing I can't seem to retrieve CAI chat histories any longer. The issue(s) being: * CAI does not load the "View Saved Chats" page after refreshing (chat histories are still visible when the page is loaded from a current chat). * The dumper does not display the download link until the "View Saved Chats" page is refreshed Combined, these issues make it impossible to download CAI chat histories. It seems like the chat histories are cached when loading into the "View Saved Chats" page for the first time (according to the console), but it never spits out a download link at the top like it's supposed to. Tested the issue using a few different parameters. * All CAI characters seem to fail loading after refreshing. * The browsers librewolf, palemoon and waterfox all have this issue. * Issue present with or without scripts enabled. Swapping between violentmonkey and tampermonkey didn't change anything either.

I made a rough but "fix".
I dumped all my account, it seems to be stable.

There was a problem with "detecting". It could fetch "user" but not "bot", i dunno how it works.

I don't know how to "pull request" here and files aren't uploading, here it is. Change these.

...
        characterToSavedDataMap[characterIdentifier].info = data;
      } else if (res.finalUrl === CHARACTER_HISTORIES_URL) {

         //Didn't workie because USERNAME equals "tgt"

        characterIdentifier = data.histories[0].msgs[0].src.name.trim();

        if(data.histories[0].msgs[0].display_name == data.histories[0].msgs[0].src.name.trim()){
          characterIdentifier = data.histories[0].msgs[0].tgt.name.trim();
        }

//        log(characterIdentifier);

        log(`Got chat histories for ${characterIdentifier}, caching...`);

        if (!characterToSavedDataMap[characterIdentifier]) {
...
I made a rough but "fix". I dumped all my account, it seems to be stable. There was a problem with "detecting". It could fetch "user" but not "bot", i dunno how it works. I don't know how to "pull request" here and files aren't uploading, here it is. Change these. ``` ... characterToSavedDataMap[characterIdentifier].info = data; } else if (res.finalUrl === CHARACTER_HISTORIES_URL) { //Didn't workie because USERNAME equals "tgt" characterIdentifier = data.histories[0].msgs[0].src.name.trim(); if(data.histories[0].msgs[0].display_name == data.histories[0].msgs[0].src.name.trim()){ characterIdentifier = data.histories[0].msgs[0].tgt.name.trim(); } // log(characterIdentifier); log(`Got chat histories for ${characterIdentifier}, caching...`); if (!characterToSavedDataMap[characterIdentifier]) { ... ```
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: waifu-collective/toolbox#2
No description provided.