iOS UIWebView: Communication Error

Get help, report and discuss bugs.
Post Reply
farfromrefuge
Posts: 14
Joined: 05 Nov 2013, 15:12

iOS UIWebView: Communication Error

Post by farfromrefuge » 21 Oct 2014, 15:58

Hi,

I am trying to load the webui from a UIWebView in my iOS app.
For that i need to authenticate with the username and password.
I got it to work and i see the webui load normally.

My problem is that as soon as this is done i get a "Communication error".
Seems like some connection gets closed immediately.

Any idea on what might be happening. I am sure i can fix it but i dont what's happening (what causes the "communication error").

Thanks

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: iOS UIWebView: Communication Error

Post by hugbug » 21 Oct 2014, 17:11

Javascript code has a timer which periodically loads data from NZBGet. If an attempt to load data fail the message "communication error" is displayed.

farfromrefuge
Posts: 14
Joined: 05 Nov 2013, 15:12

Re: iOS UIWebView: Communication Error

Post by farfromrefuge » 21 Oct 2014, 17:28

Thanks for your fast answer.
By any chance could you point me to the "load data" call in the source? With that i think i can pinpoint the source of the problem.

Thanks

EDIT: is that it?

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: iOS UIWebView: Communication Error

Post by hugbug » 21 Oct 2014, 17:35

And this.

farfromrefuge
Posts: 14
Joined: 05 Nov 2013, 15:12

Re: iOS UIWebView: Communication Error

Post by farfromrefuge » 21 Oct 2014, 17:43

ok that s what i thought.

after some testing it does not always fail. Especially if i click on the "refresh button" then it does update the ui correctly.
And sometimes it even seems to be updating for a while.

Is there a debug level to get the result of those RPC calls? Or anything i can do without having to play with the source.
i run NZBGet on my synology so it s not easy to tinkle with the sources.
I think getting the status code of those RPC calls could help me.

Post Reply

Who is online

Users browsing this forum: No registered users and 48 guests