drewbaumann / AskGPT

GNU General Public License v3.0
43 stars 13 forks source link

Plugin crashes and exits Koreader #6

Open whatever4kindle opened 11 months ago

whatever4kindle commented 11 months ago

crash report:

./luajit: plugins/askgpt.koplugin/gpt_query.lua:31: Error querying ChatGPT API: 429 stack traceback: [C]: in function 'error' plugins/askgpt.koplugin/gpt_query.lua:31: in function 'queryChatGPT' plugins/askgpt.koplugin/dialogs.lua:59: in function 'callback' frontend/ui/widget/button.lua:411: in function 'handleEvent' frontend/ui/widget/container/inputcontainer.lua:250: in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua:100: in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua:100: in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua:100: in function 'handleEvent' ... frontend/ui/widget/container/widgetcontainer.lua:100: in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua:100: in function 'handleEvent' frontend/ui/uimanager.lua:824: in function 'sendEvent' frontend/ui/uimanager.lua:52: in function 'default' frontend/ui/uimanager.lua:1313: in function 'handleInputEvent' frontend/ui/uimanager.lua:1407: in function 'handleInput' frontend/ui/uimanager.lua:1456: in function 'run' ./reader.lua:302: in main chunk [C]: at 0x00013e9d lipc-wait-event exited normally with status: 0

Maybe a ChatGPT problem, not a Koreader or plugin problem?

drewbaumann commented 11 months ago

Thanks for the report! I didn't see this till now. Will take a look at that line and see what I can find.

drewbaumann commented 11 months ago

crash report:

./luajit: plugins/askgpt.koplugin/gpt_query.lua:31: Error querying ChatGPT API: 429 stack traceback: [C]: in function 'error' plugins/askgpt.koplugin/gpt_query.lua:31: in function 'queryChatGPT' plugins/askgpt.koplugin/dialogs.lua:59: in function 'callback' frontend/ui/widget/button.lua:411: in function 'handleEvent' frontend/ui/widget/container/inputcontainer.lua:250: in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' ... frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/uimanager.lua:824: in function 'sendEvent' frontend/ui/uimanager.lua:52: in function 'default' frontend/ui/uimanager.lua:1313: in function 'handleInputEvent' frontend/ui/uimanager.lua:1407: in function 'handleInput' frontend/ui/uimanager.lua:1456: in function 'run' ./reader.lua:302: in main chunk [C]: at 0x00013e9d lipc-wait-event exited normally with status: 0

Maybe a ChatGPT problem, not a Koreader or plugin problem?

A 429 indicates that you were rate limited and that is why the error occurred.

SmokeShine commented 10 months ago

where is the crash report? I am kindle PW 5.6.1 jailbreak with koreader. I selected a paragraph and entered "summarize" in the text box and it crashes. I have the api-key from a new account in the lua file.

drewbaumann commented 10 months ago

where is the crash report? I am kindle PW 5.6.1 jailbreak with koreader. I selected a paragraph and entered "summarize" in the text box and it crashes. I have the api-key from a new account in the lua file.

Look in the folder where KOReader is installed. There should be a file named crash.log.

SmokeShine commented 10 months ago

it works.is there any way to get "summary till this page"?

drewbaumann commented 10 months ago

it works.is there any way to get "summary till this page"?

Not at the moment! It's not a feature i have built, but it could certainly be interesting! It would be a big effort and something I'd have to put a little product thought into. However, this is an open source project so if you'd like to make a suggestion in a new issue we could take it from there.

SmokeShine commented 10 months ago

IMG_20230817_103441__01

the panel is not populating correctly.

drewbaumann commented 10 months ago

IMG_20230817_103441__01

the panel is not populating correctly.

Does Wikipedia or other plugins do the same thing? That does indeed look off, but i have not been able to replicate that.

SmokeShine commented 10 months ago

yes. they work fine.

edit - the glitch was due to custom font + custom screensaver. The addon works now and is great for reading research papers.

whatever4kindle commented 10 months ago

crash report: ./luajit: plugins/askgpt.koplugin/gpt_query.lua:31: Error querying ChatGPT API: 429 stack traceback: [C]: in function 'error' plugins/askgpt.koplugin/gpt_query.lua:31: in function 'queryChatGPT' plugins/askgpt.koplugin/dialogs.lua:59: in function 'callback' frontend/ui/widget/button.lua:411: in function 'handleEvent' frontend/ui/widget/container/inputcontainer.lua:250: in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' ... frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/uimanager.lua:824: in function 'sendEvent' frontend/ui/uimanager.lua:52: in function 'default' frontend/ui/uimanager.lua:1313: in function 'handleInputEvent' frontend/ui/uimanager.lua:1407: in function 'handleInput' frontend/ui/uimanager.lua:1456: in function 'run' ./reader.lua:302: in main chunk [C]: at 0x00013e9d lipc-wait-event exited normally with status: 0 Maybe a ChatGPT problem, not a Koreader or plugin problem?

A 429 indicates that you were rate limited and that is why the error occurred.

Does it only work if you have the paid version? I already tried with 3 or 4 different API keys, same thing.

SmokeShine commented 10 months ago

crash report: ./luajit: plugins/askgpt.koplugin/gpt_query.lua:31: Error querying ChatGPT API: 429 stack traceback: [C]: in function 'error' plugins/askgpt.koplugin/gpt_query.lua:31: in function 'queryChatGPT' plugins/askgpt.koplugin/dialogs.lua:59: in function 'callback' frontend/ui/widget/button.lua:411: in function 'handleEvent' frontend/ui/widget/container/inputcontainer.lua:250: in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' ... frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/uimanager.lua:824: in function 'sendEvent' frontend/ui/uimanager.lua:52: in function 'default' frontend/ui/uimanager.lua:1313: in function 'handleInputEvent' frontend/ui/uimanager.lua:1407: in function 'handleInput' frontend/ui/uimanager.lua:1456: in function 'run' ./reader.lua:302: in main chunk [C]: at 0x00013e9d lipc-wait-event exited normally with status: 0 Maybe a ChatGPT problem, not a Koreader or plugin problem?

A 429 indicates that you were rate limited and that is why the error occurred.

Does it only work if you have the paid version? I already tried with 3 or 4 different API keys, same thing.

5 dollars is added when you make a new developer account. I didnot subscribe to any paid tier and it still works.

drewbaumann commented 10 months ago

crash report: ./luajit: plugins/askgpt.koplugin/gpt_query.lua:31: Error querying ChatGPT API: 429 stack traceback: [C]: in function 'error' plugins/askgpt.koplugin/gpt_query.lua:31: in function 'queryChatGPT' plugins/askgpt.koplugin/dialogs.lua:59: in function 'callback' frontend/ui/widget/button.lua:411: in function 'handleEvent' frontend/ui/widget/container/inputcontainer.lua:250: in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' ... frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/uimanager.lua:824: in function 'sendEvent' frontend/ui/uimanager.lua:52: in function 'default' frontend/ui/uimanager.lua:1313: in function 'handleInputEvent' frontend/ui/uimanager.lua:1407: in function 'handleInput' frontend/ui/uimanager.lua:1456: in function 'run' ./reader.lua:302: in main chunk [C]: at 0x00013e9d lipc-wait-event exited normally with status: 0 Maybe a ChatGPT problem, not a Koreader or plugin problem?

A 429 indicates that you were rate limited and that is why the error occurred.

Does it only work if you have the paid version? I already tried with 3 or 4 different API keys, same thing.

5 dollars is added when you make a new developer account. I didnot subscribe to any paid tier and it still works.

Interesting. It's a paid API so I would assume you'd have to pay for this to work. This is not part of the research beta for ChatGPT which is free.

TommyMay commented 8 months ago

I have a similar issue with KOReader crashing after selecting a text and asking ChatGPT to f. e. summarize it. The error I received is visible on the attached screen. I tested the API key in a simple Python application which calls ChatGPT API, which I issued also in api_key.lua file and I receive a response from the API. What could be the problem with this plugin not working? Any help will be much appreciated! 20231017_212504

drewbaumann commented 8 months ago

I have a similar issue with KOReader crashing after selecting a text and asking ChatGPT to f. e. summarize it. The error I received is visible on the attached screen. I tested the API key in a simple Python application which calls ChatGPT API, which I issued also in api_key.lua file and I receive a response from the API. What could be the problem with this plugin not working? Any help will be much appreciated! 20231017_212504

@TommyMay yikes! I am sorry to see that it is blowing up on you. I unfortunately don't know that I have the ability to look into that issue at the moment.

On that note, I would love it if there are any Lua devs in the crowd who would be open to helping maintain this app!

arjun9124 commented 7 months ago

Encountering similar issue here, PW3 5.13.7

SmokeShine commented 4 months ago

Encountering similar issue here, PW3 5.13.7

Check if you have credits. Free credits expire after 3 months. If yes, then add a credit card and put 5 dollars. Then remove the card. You will to create a new api key. Delete the old one.