Error in REST API: For input string: ""

Need help? Post your questions here.

Moderator: moderators

Error in REST API: For input string: ""

Postby donpearson » Wed Sep 19, 2012 3:31 pm

I'm seeing the error in the logs every couple of minutes.
Any ideas?

I'm running 4.7 :(
Facebook Group:
http://www.facebook.com/groups/subsonic.group/

Image
donpearson
 
Posts: 361
Joined: Wed Oct 15, 2008 3:53 pm
Location: UK

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

Postby donpearson » Mon Sep 24, 2012 9:31 pm

No one else had this problem?
Or can I fix it?
Facebook Group:
http://www.facebook.com/groups/subsonic.group/

Image
donpearson
 
Posts: 361
Joined: Wed Oct 15, 2008 3:53 pm
Location: UK

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

Postby hakko » Mon Sep 24, 2012 9:34 pm

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.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

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

Postby donpearson » Mon Sep 24, 2012 11:10 pm

I did say the ver I was running, and that's all there was in the way of the error.
Facebook Group:
http://www.facebook.com/groups/subsonic.group/

Image
donpearson
 
Posts: 361
Joined: Wed Oct 15, 2008 3:53 pm
Location: UK

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

Postby hakko » Tue Sep 25, 2012 6:38 am

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.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

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

Postby bushman4 » Tue Sep 25, 2012 12:15 pm

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
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

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

Postby vanduker » Fri Sep 28, 2012 12:59 pm

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.
vanduker
 
Posts: 3
Joined: Fri Sep 28, 2012 2:49 am

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

Postby bushman4 » Fri Sep 28, 2012 1:21 pm

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
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

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

Postby donpearson » Fri Sep 28, 2012 2:26 pm

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.
Facebook Group:
http://www.facebook.com/groups/subsonic.group/

Image
donpearson
 
Posts: 361
Joined: Wed Oct 15, 2008 3:53 pm
Location: UK

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

Postby bushman4 » Fri Sep 28, 2012 2:28 pm

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
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

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

Postby donpearson » Fri Sep 28, 2012 2:32 pm

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.
Facebook Group:
http://www.facebook.com/groups/subsonic.group/

Image
donpearson
 
Posts: 361
Joined: Wed Oct 15, 2008 3:53 pm
Location: UK

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

Postby bushman4 » Fri Sep 28, 2012 2:42 pm

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
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

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

Postby vanduker » Fri Sep 28, 2012 2:45 pm

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.
vanduker
 
Posts: 3
Joined: Fri Sep 28, 2012 2:49 am

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

Postby vanduker » Fri Sep 28, 2012 2:52 pm

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.
vanduker
 
Posts: 3
Joined: Fri Sep 28, 2012 2:49 am

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

Postby bushman4 » Fri Sep 28, 2012 3:11 pm

For iOS devices (at least with iSub) the "refresh" is executed by dragging the artist list down PAST the top of the list...

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 12 guests