LegendPoet / SillyTavern-fix

Latest SillyTavern version with Poe integration. This version only adds the Poe connection achieved by GlizzyChief to SillyTavern version 1.9.7. This is a prototype and will be updated as bugs arise with the integration.
GNU Affero General Public License v3.0
18 stars 11 forks source link

Invalid or Expired token; But it connects fine on the Chrome window #4

Open Goldenschmidt opened 1 year ago

Goldenschmidt commented 1 year ago

Warning. Complete all the fields below. Otherwise, your bug report will be ignored!

Have you searched for similar bugs? Yes. But none are of SillyTavern-fix, nor of recent days.

Describe the bug Trying to connect to Poe through SillyTavern-fix, and ensuring that the API key is correct, gives me the error "Invalid or expired token". However, the Chrome browser that opens does show Poe.com as open and ready for prompts. Checking the console, there appears to be an error. (See Screenshot below)

To Reproduce Steps to reproduce the behavior:

  1. Start SillyTavern
  2. Paste in your API key from Poe.com into the text bar where you need to put in the key.
  3. Click on 'Connect'
  4. Wait a few seconds.
  5. See error

Expected behavior Expected SillyTavern to connect and be ready to send and receive prompts.

Screenshots billede

Logs

'Providing the logs from the browser DevTools console (opened by pressing the F12 key) or SillyTavern command line window will be highly appreciated.' ← Don't know what this implies, but have the stuff from the command prompt:

BOTNAME DURING INITIALIZING: gptforst DEBUG: Current page title: Poe - GPTforST Error [TypeError]: Cannot read properties of undefined (reading 'click') at evaluate (evaluate at PoeClient.getBotNames (C:\Users####\Documents\AIStuff\SillyTavern-1.9.7-fix\src\poe-client.js:387:25), :12:20) at #evaluate (C:\Users####\Documents\AIStuff\SillyTavern-1.9.7-fix\node_modules\puppeteer-core\lib\cjs\puppeteer\common\ExecutionContext.js:254:55) at async ExecutionContext.evaluate (C:\Users####\Documents\AIStuff\SillyTavern-1.9.7-fix\node_modules\puppeteer-core\lib\cjs\puppeteer\common\ExecutionContext.js:151:16) at async PoeClient.getBotNames (C:\Users####\Documents\AIStuff\SillyTavern-1.9.7-fix\src\poe-client.js:387:9) at async C:\Users####\Documents\AIStuff\SillyTavern-1.9.7-fix\server.js:2929:20

Desktop (please complete the following information):

erebar commented 1 year ago

It works when you download the source. The releases don't have the fix (I tested 1.9.7) and that has the same problem that you describe.

LegendPoet commented 1 year ago

Did you update your repository? From what I see, you have an older version of the integration.

Goldenschmidt commented 1 year ago

Just tried again with a completely clean pull of the Main branch. It still gives me the error.

BOTNAME DURING INITIALIZING: gptforst Error [TypeError]: Cannot read properties of null (reading 'parentElement') at evaluate (evaluate at PoeClient.initializeDriver (D:\Users####\Documents\AIstuff\SillyTavern-fix\src\poe-client.js:125:25), :2:22) at #evaluate (D:\Users####\Documents\AIstuff\SillyTavern-fix\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\ExecutionContext.js:229:55) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ExecutionContext.evaluate (D:\Users####\Documents\AIstuff\SillyTavern-fix\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\ExecutionContext.js:126:16) at async IsolatedWorld.evaluate (D:\Users####\Documents\AIstuff\SillyTavern-fix\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\IsolatedWorld.js:129:16) at async CdpFrame.evaluate (D:\Users####\Documents\AIstuff\SillyTavern-fix\node_modules\puppeteer-core\lib\cjs\puppeteer\api\Frame.js:370:20) at async CdpPage.evaluate (D:\Users####\Documents\AIstuff\SillyTavern-fix\node_modules\puppeteer-core\lib\cjs\puppeteer\api\Page.js:872:20) at async PoeClient.initializeDriver (D:\Users####\Documents\AIstuff\SillyTavern-fix\src\poe-client.js:125:9) at async getPoeClient (D:\Users####\Documents\AIstuff\SillyTavern-fix\server.js:2613:39) at async D:\Users####\Documents\AIstuff\SillyTavern-fix\server.js:2642:24