zhukov / webogram

Telegram web application, GPL v3
https://web.telegram.org
GNU General Public License v3.0
7.95k stars 2.36k forks source link

[Mobile] Error while trying to sign in on iOS 5.1.1 #354

Closed kernelrain closed 10 years ago

kernelrain commented 10 years ago

When trying to sign in to webogram on my iPod touch 3G running iOS 5.1.1 it is generating keys for a few minutes and then aborts with an error message (internal server error) with following error code:

Method: auth.sendCode
Result: {"input":"auth.sendCode","handled":true,"detailsShown":true,"code":22,"message":"QUOTA_EXCEEDED_ERR: DOM Exception 22","name":"QUOTA_EXCEEDED_ERR"}
Stack:

Is this a known issue? Is there anyone who is able to reproduce/trace/fix it?

jimCresswell commented 10 years ago

I don't have a fix I'm afraid, just a comment. iOS 5.1(.1) had some fairly crippling issues for web apps including around localStorage. However, it might be that the 5MB limit really is being exceeded. Debugging what is happening would be a little tricky, remote debugging wasn't a feature until iOS6. You might have some luck with the Weinre tool

http://envyandroid.com/archives/483/easily-debug-mobile-websites-with-weinre

http://people.apache.org/~pmuellr/weinre/docs/latest/Home.html

Sorry not to be more helpful.

zhukov commented 10 years ago

Yep, it may be some localStorage related problem.

@kernelrain you can try to check Safari preferences. "Settings" - "Safari" - "Advanced" - "Website Data". Locate Webogram website, you are using and check, how much data is used. Also you can try clearing data for Webogram or some other sites in edit mode.

kernelrain commented 10 years ago

Hm, it doesn't show anything in 'Website Data'. I tried clearing the cache etc. but it doesn't work anyways.

zhukov commented 10 years ago

Do you have free space available on device?

kernelrain commented 10 years ago

Yeah, sure (about 10GB).

zhukov commented 10 years ago

Are you using safari in safe mode?

I've found this on internet http://stackoverflow.com/questions/9077101/iphone-localstorage-quota-exceeded-err-issue

kernelrain commented 10 years ago

I was using Safari in private mode. Once i turned it off, the error message changed to

Method: auth.sendCode
Result: {"message":"'undefined' is not a function","input":"auth.sendCode","handled":true,"detailsShown":true}
Stack:

Edit: Beforehand, I was asked if i wanted to increase the local storage to 10MB.

zhukov commented 10 years ago

Can you check settings from https://github.com/zhukov/webogram/issues/354#issuecomment-47530339 ? Any updates there for Webogram?

kernelrain commented 10 years ago

Yes, it now says that Webogram is using 6MB of space.

zhukov commented 10 years ago

That's not enough to locate a problem :(

Is the "Stack: " line really empty? Can you check console? I remember , that on older iOS you can enable "console" tab in Safari settings somehow. It may contain useful information.

zhukov commented 10 years ago

Any updates here?

kernelrain commented 10 years ago

I'm sorry, I'm currently on vacation and therefore not able to further investigate the issue. I'll post the details once I'm back (approx. 2 weeks).