kiwix-android icon indicating copy to clipboard operation
kiwix-android copied to clipboard

500 Error happens in Browser

Open gouri-panda opened this issue 4 years ago • 5 comments

Describe the bug Sometimes if I Open Kiwix's hotspot server through kiwix's android app to see my zim files in my browser.Sometimes I got 500 & 404 (internal server error and page not found)

Expected behavior Not to see that error.

Steps to reproduce the behavior: It happens 6 out of 10 times.

  1. Open kiwix android app
  2. Go to wifi-hotspot
  3. Start the server
  4. Look into the browser
  5. Open some zim files
  6. Go backward and forward
  7. Repeat a couple of times

Environment

  • Version of Kiwix Android: 3.4.4
  • Device: Realme
  • OS version: 11
  • Browser: Brave & Chrome

gouri-panda avatar Jul 31 '21 15:07 gouri-panda

If something goes wrong here, this is highly probably something wrong in the libkiwix.I would recommend to keep that ticket open until we have finish to introduce new JNI based on libkiwix10. Then if the bug is still there, look at it.

kelson42 avatar Jul 31 '21 16:07 kelson42

Hi, I am aware of it. If you closely inspect the entire behavior of the application, then it turns out, the server shows Internal Server Error, only after the application has been terminated(or better to say killed) by the android OS. We might consider optimizing resources usage in order to prevent the application from being killed by the OS(when we move back and forth between browser and application real quick and many times)

s-ayush2903 avatar Aug 01 '21 09:08 s-ayush2903

Then this is a pure Android problem where we need to handle different,y the hibernation strategy in case the server mode is activated, right?

kelson42 avatar Aug 01 '21 11:08 kelson42

Yep exactly! These days I'm busy with wrapping my summer of code project and college too has reopened, leaving a very less amount of time in my hands. I do not know when I'll get around this issue, but hopefully it should not be that tricky to fix.

s-ayush2903 avatar Aug 07 '21 20:08 s-ayush2903

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

stale[bot] avatar Jan 03 '22 21:01 stale[bot]

This issue is automatically fixed by #3217.

MohitMaliFtechiz avatar Aug 21 '23 10:08 MohitMaliFtechiz