Coder Social home page Coder Social logo

Comments (17)

jackschedel avatar jackschedel commented on July 19, 2024 2

Weird about the virus check; this is why I provide the build hash data.

2.1.0e will have another fix, can't guarantee it'll be the last tho 🥲

from koalaclient.

jackschedel avatar jackschedel commented on July 19, 2024 1

For future reference, the local files are located:
On macOS: ~/Library/Application Support/koala-client
On Windows: C:\Users<YourUsername>\AppData\Roaming\koala-client
On Linux: ~/.config/koala-client

from koalaclient.

jackschedel avatar jackschedel commented on July 19, 2024 1

I was able to recreate a (not necessarily yours) Cannot read properties of undefined (reading 'model') error that will be fixed in 2.1.0c, so don't reset your data yet.

I also added sourcemap building, so the error message should tell me where it is occurring in the source code now.

from koalaclient.

jackschedel avatar jackschedel commented on July 19, 2024

Hi, could you provide your error logs? Toggle Developer Tools -> Console

from koalaclient.

imesha10 avatar imesha10 commented on July 19, 2024

Hi, could you provide your error logs? Toggle Developer Tools -> Console

I did ctrl shift I then in console I see these

index-a4e37498.js:8 TypeError: Cannot read properties of undefined (reading 'model')
    at Qrt (index-a4e37498.js:1653:32719)
    at Yx (index-a4e37498.js:6:19551)
    at zM (index-a4e37498.js:8:44101)
    at RM (index-a4e37498.js:8:39819)
    at uie (index-a4e37498.js:8:39745)
    at Ey (index-a4e37498.js:8:39596)
    at m7 (index-a4e37498.js:8:35959)
    at LM (index-a4e37498.js:8:34906)
    at R (index-a4e37498.js:1:11631)
    at MessagePort.F (index-a4e37498.js:1:11995)
e7 @ index-a4e37498.js:8
index-a4e37498.js:8 Uncaught TypeError: Cannot read properties of undefined (reading 'model')
    at Qrt (index-a4e37498.js:1653:32719)
    at Yx (index-a4e37498.js:6:19551)
    at zM (index-a4e37498.js:8:44101)
    at RM (index-a4e37498.js:8:39819)
    at uie (index-a4e37498.js:8:39745)
    at Ey (index-a4e37498.js:8:39596)
    at m7 (index-a4e37498.js:8:35959)
    at LM (index-a4e37498.js:8:34906)
    at R (index-a4e37498.js:1:11631)
    at MessagePort.F (index-a4e37498.js:1:11995)

from koalaclient.

imesha10 avatar imesha10 commented on July 19, 2024

Something to mention is that last the previous version I had was compiled by cloning the repo and running the workflow for release.
However before installing this I uninstalled this and reinstalled just in case to check and it still failed.
Maybe it's the place where the chat saves and the api info is saved is the problem.
If you can tell me the location they are saved I can try deleting them if they are saved on the computer.

from koalaclient.

jackschedel avatar jackschedel commented on July 19, 2024

It is definitely a migration issue, but I would rather fix it that have you delete your history xD

from koalaclient.

jackschedel avatar jackschedel commented on July 19, 2024

@imesha10 did 2.1.0c fix it?

from koalaclient.

imesha10 avatar imesha10 commented on July 19, 2024

@imesha10 did 2.1.0c fix it?

No it still does not work though different error. I'll just temporarily rename the folder for the saved chats and it works.

index-ef3a6568.js:8 TypeError: Cannot read properties of undefined (reading 'prompt_cost_1000')
    at mermaid-ae477ddf.js:15312:69
    at Object.useMemo (index-ef3a6568.js:6:25886)
    at wn.useMemo (index-ef3a6568.js:1:8991)
    at mermaid-ae477ddf.js:15312:69
    at Yx (index-ef3a6568.js:6:19551)
    at t7 (index-ef3a6568.js:8:3143)
    at lM (index-ef3a6568.js:8:2355)
    at sM (index-ef3a6568.js:8:1897)
    at zM (index-ef3a6568.js:8:47395)
    at RM (index-ef3a6568.js:8:39819)
e7 @ index-ef3a6568.js:8
index-ef3a6568.js:8 Uncaught TypeError: Cannot read properties of undefined (reading 'prompt_cost_1000')
    at mermaid-ae477ddf.js:15312:69
    at Object.useMemo (index-ef3a6568.js:6:25886)
    at wn.useMemo (index-ef3a6568.js:1:8991)
    at mermaid-ae477ddf.js:15312:69
    at Yx (index-ef3a6568.js:6:19551)
    at t7 (index-ef3a6568.js:8:3143)
    at lM (index-ef3a6568.js:8:2355)
    at sM (index-ef3a6568.js:8:1897)
    at zM (index-ef3a6568.js:8:47395)
    at RM (index-ef3a6568.js:8:39819)

from koalaclient.

jackschedel avatar jackschedel commented on July 19, 2024

This should be fixed in 2.1.0d, but there's probably going to be alot more edge cases that occur since it looks like somehow your modelDefs or atleast modelDefs[0] is null (should've been populated as default config so idk)

from koalaclient.

jackschedel avatar jackschedel commented on July 19, 2024

Adding a scuffed modelDef reset if null check on app init, ig this is what I get for not following BetterChatGPT's migration schema.

from koalaclient.

imesha10 avatar imesha10 commented on July 19, 2024

Adding a scuffed modelDef reset if null check on app init, ig this is what I get for not following BetterChatGPT's migration schema.

Ok there is no rush if this is an edge case, I'll just wait till it's released and if it doesn't fix it I'll just delete my old chats. There is nothing I need to really keep there anyways.

from koalaclient.

jackschedel avatar jackschedel commented on July 19, 2024

is it still doing it on 2.1.0d?

from koalaclient.

imesha10 avatar imesha10 commented on July 19, 2024

is it still doing it on 2.1.0d?

was just about to install it but this happened
image
On Microsoft Defender:
image
On virus total it's clean
https://www.virustotal.com/gui/file/eb47eda7781cfa622c446fbd1e493ab87fa14bbd98ce3f75fb58bb87564d8c49?nocache=1

However the file is quarentied.

from koalaclient.

imesha10 avatar imesha10 commented on July 19, 2024

I'll build this by myself and see if it happens again.

from koalaclient.

imesha10 avatar imesha10 commented on July 19, 2024

I built it.

(I forked the repo, then ran the workflow to build and publish desktop app and this time didn't qurentine the file)

However the error remains:

index-84599a02.js:8 TypeError: Cannot read properties of undefined (reading 'name')
    at mermaid-ae477ddf.js:15312:69
    at yy (index-84599a02.js:8:24296)
    at d1 (index-84599a02.js:8:42448)
    at IM (index-84599a02.js:8:36651)
    at bu (index-84599a02.js:6:3288)
    at hie (index-84599a02.js:8:41325)
    at Sh (index-84599a02.js:8:40309)
    at LM (index-84599a02.js:8:35758)
    at R (index-84599a02.js:1:11631)
    at MessagePort.F (index-84599a02.js:1:11995)
e7 @ index-84599a02.js:8
index-84599a02.js:6 Uncaught TypeError: Cannot read properties of undefined (reading 'name')
    at mermaid-ae477ddf.js:15312:69
    at yy (index-84599a02.js:8:24296)
    at d1 (index-84599a02.js:8:42448)
    at IM (index-84599a02.js:8:36651)
    at bu (index-84599a02.js:6:3288)
    at hie (index-84599a02.js:8:41325)
    at Sh (index-84599a02.js:8:40309)
    at LM (index-84599a02.js:8:35758)
    at R (index-84599a02.js:1:11631)
    at MessagePort.F (index-84599a02.js:1:11995)

from koalaclient.

imesha10 avatar imesha10 commented on July 19, 2024

I think at this point if this is just an edge case and it's just my saves that are corrupted then I'm fine with deleting them. (it works after deleting the old saves entire folder)

As I mentioned before I built your app by forking it before to test out the new api menu when it wasn't done yet so it might have corrupted the saves there. I don't know but it might be just a case of me only.

Please close this issue if you also agree that this is probably just an edge case other probably won't get.

from koalaclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.