Page 1 of 2
Error in REST API: For input string: ""

Posted:
Wed Sep 19, 2012 3:31 pm
by donpearson
I'm seeing the error in the logs every couple of minutes.
Any ideas?
I'm running 4.7

Re: Error in REST API: For input string: ""

Posted:
Mon Sep 24, 2012 9:31 pm
by donpearson
No one else had this problem?
Or can I fix it?
Re: Error in REST API: For input string: ""

Posted:
Mon Sep 24, 2012 9:34 pm
by hakko
I'd suggest posting the whole stacktrace (all those .java file names and line numbers) and what version you're running, plus sending a message to Sindre to have his attention for the issue.
Re: Error in REST API: For input string: ""

Posted:
Mon Sep 24, 2012 11:10 pm
by donpearson
I did say the ver I was running, and that's all there was in the way of the error.
Re: Error in REST API: For input string: ""

Posted:
Tue Sep 25, 2012 6:38 am
by hakko
just making sure you're not running of the betas.
you get two different views if you check the log from the about view, or if you open the C:/subsonic/subsonic.log in a text editor. In a text editor, the stack trace is included and that's what Sindre would need to solve this.
Re: Error in REST API: For input string: ""

Posted:
Tue Sep 25, 2012 12:15 pm
by bushman4
I was getting a similar error in my logs when I first upgraded to 4.7, and there was no other info, just the error. I believe that it was coming from one of my iSub clients, and it affected nothing on the server or client.
I wrote it off as "Log Spam" an ignored it.
The next time an iSub client connects I'll take a look again.
Glenn
Re: Error in REST API: For input string: ""

Posted:
Fri Sep 28, 2012 12:59 pm
by vanduker
I can recreate this error at will.
Subsonic 4.7 on Windows Server 2008R2
Java 1.7.7
Subsonic for Android 3.4
Error occurs when user on Android device is browsing through list of artists. Any artist they choose causes them to get the error of:
Error For input string: (random hex info)
On the server the log shows:
Error in REST API: For input string: (random hex info)
The user can search for any artist, any song and so on with no problem - error only happens for us when they browse the artist list. I can post whatever logs are needed or can build a temp account on my server if needed.
Re: Error in REST API: For input string: ""

Posted:
Fri Sep 28, 2012 1:21 pm
by bushman4
Sounds like you have a cached version of the artist list on your android client...
Send me a PM with a test account and I'll give it a shot from here.
Glenn
Re: Error in REST API: For input string: ""

Posted:
Fri Sep 28, 2012 2:26 pm
by donpearson
bushman4 wrote:Sounds like you have a cached version of the artist list on your android client...
Send me a PM with a test account and I'll give it a shot from here.
Glenn
I don't have an android phone.
Re: Error in REST API: For input string: ""

Posted:
Fri Sep 28, 2012 2:28 pm
by bushman4
None of your users use the Android client?
And I was talking to the guy who just posted his steps to reproduce that included the android client version...
Glenn
Re: Error in REST API: For input string: ""

Posted:
Fri Sep 28, 2012 2:32 pm
by donpearson
bushman4 wrote:None of your users use the Android client?
And I was talking to the guy who just posted his steps to reproduce that included the android client version...
Glenn
No none of them are using it.
Re: Error in REST API: For input string: ""

Posted:
Fri Sep 28, 2012 2:42 pm
by bushman4
So it must be a different remote client then... RestAPI is the remote interface for Subsonic.
What kind of remote clients access your system? It sounds like one of them has a cached artist list.
Glenn
Re: Error in REST API: For input string: ""

Posted:
Fri Sep 28, 2012 2:45 pm
by vanduker
Glenn (bushman4) diagnosed the problem on mine. I had done a recent upgrade to 4.7 (final). The fix on the Android clients was they needed to refresh the artist list. To do this go to the artist list ans press the refresh button in the upper right hand corner. Now it works fine. Will verify with another Android client and update the thread if this is not also the fix for them. Thanks so much bushman4 for the timely help. I do love this product.
Re: Error in REST API: For input string: ""

Posted:
Fri Sep 28, 2012 2:52 pm
by vanduker
bushman4 wrote:So it must be a different remote client then... RestAPI is the remote interface for Subsonic.
What kind of remote clients access your system? It sounds like one of them has a cached artist list.
Glenn
For the OP if you have friends set up on your server they can use the remote client without you knowing it or setting any additional permissions. I haven't tried to reproduce the error on an iOS device yet (daughter is Apple fanboy) but will later today. Suspect it will have the same failure mode and need the cache updated.
Re: Error in REST API: For input string: ""

Posted:
Fri Sep 28, 2012 3:11 pm
by bushman4
For iOS devices (at least with iSub) the "refresh" is executed by dragging the artist list down PAST the top of the list...
Glenn