Skip to content

[BUG] When using the chat feature, the app crashes after a period of loading. #677

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

Open
vanbolin opened this issue Mar 5, 2025 · 5 comments
Assignees
Labels
bug Something isn't working P1 will be fixed in next version

Comments

@vanbolin
Copy link

vanbolin commented Mar 5, 2025

Describe the bug
When using the chat feature, the app crashes after a period of loading.
I launched Pygwalker from the .py file on my computer. Then a web page will open, and I use the chat feature on that page. After a while, it will crash.
The data I use: https://www.kaggle.com/datasets/dgomonov/new-york-city-airbnb-open-data/data?select=AB_NYC_2019.csv
Here is my code.
Image
If i running the code in a .ipynb file, i can use the chat feature.

To Reproduce
Steps to reproduce the behavior:

  1. Use this code to launch Pygwalker from the .py file.

  2. In the chat feature, input: "With room_type on the x-axis and the mean price on the y-axis."
    Image
    It is the same when using the chat here.
    Image

  3. After a while, it will crash.

Expected behavior
Chat feature should work.

Versions

  • pygwalker version: 0.4.9.14
  • python version: 3.12.9
  • browser: chrome
@vanbolin vanbolin added the bug Something isn't working label Mar 5, 2025
@longxiaofei longxiaofei added the P1 will be fixed in next version label Mar 5, 2025
@longxiaofei longxiaofei self-assigned this Mar 5, 2025
@longxiaofei
Copy link
Contributor

longxiaofei commented Mar 5, 2025

@vanbolin Thanks for your feedback.

I will release a new version tomorrow to fix it.

@longxiaofei
Copy link
Contributor

I misunderstood this issue before.

Chat belongs to one of the kanaries cloud features.

You can get kanaires_api_token by tips and use this feature.

Image

@vanbolin
Copy link
Author

vanbolin commented Mar 6, 2025

Actually I login successfully, but the crash still happens when i use chat feature.

Image

Image
Then it crashes.

@longxiaofei longxiaofei reopened this Mar 6, 2025
@vanbolin
Copy link
Author

vanbolin commented Mar 6, 2025

I know the reason, when i use Clash for windows(VPN), i cannot use chat feature. So it will crash.
If i don't use clash, i can use the chat feature successfully.

@vanbolin
Copy link
Author

vanbolin commented Mar 7, 2025

There is a new chat feature problem. I run this code. I already login successfully. I don't use Clash(VPN).

Image

And I use the chat feature.

Image

It shows the result. But after that, it crashes.

Image

And when I run the code that calls a csv file with more data, it crashes without even showing the results.
All of the above is the code I run with a .py file. When running the code in the .ipynb file, they all complete successfully and don't crash.

In addition, is it normal for a web page to crash immediately if an error message such as not logging in or using clash appears?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 will be fixed in next version
Projects
None yet
Development

No branches or pull requests

2 participants