Dineshkarthik / Whatsapp-analyzer

Visualize your WhatsApp conversations and have fun..!
http://whatsapp-analyzer.dineshkarthik.me
MIT License
31 stars 10 forks source link

Files over 1MB are not loaded #25

Open SmartPhoneLover opened 2 years ago

SmartPhoneLover commented 2 years ago

Describe the bug It doesn't work with TXT files over 1MB. No report is sent.

To Reproduce Steps to reproduce the behavior:

  1. Go to WhatsApp and export a single chat or group (equal or greater than 1MB).
  2. Import it into WhatsApp Analyzer.

Expected behavior The dashboard should show the corresponding analytics after loading the file.

CappiSteijns commented 2 years ago

I do think I counter the same problem as you.

When trying to use a .txt file with a size of: 1.94 MB I will get the following error: _/usr/local/lib/python3.6/site-packages/werkzeug/wrappers/baseresponse.py:479: UserWarning: The "b'session'" cookie is too large: the value was 5584 bytes but the header required 26 extra bytes. The final size was 5610 bytes but the limit is 4093 bytes. Browsers may silently ignore cookies larger than this.

However, when I use an .txt file with a size of: 8,59 KB I don't get an error and I will succesfully get the analytics.

It does say on the github there is a change it won't work if a .txt file is to big. So maybe one day it will work after an update :)

SmartPhoneLover commented 2 years ago

Fingers crossed hehe. Hope it gets fixed some day.

rgriffogoes commented 1 year ago

I also had the same issue and I was able to come up with a quick fix. Hopefully the owner of this repo will check-it and accept, then the dockerhub image should be updated.

If not, you can checkout my repo and do a build locally before running:

Something like

sudo docker build -t wa .
sudo docker run -p 5000:5000 wa