Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect API key causes Java error: IllegalStateException #17

Open
Castun opened this issue Jan 21, 2014 · 6 comments
Open

Incorrect API key causes Java error: IllegalStateException #17

Castun opened this issue Jan 21, 2014 · 6 comments

Comments

@Castun
Copy link

Castun commented Jan 21, 2014

Setup Sickstache with no problem, tried CouchTatertot and this is the full error given:

ERROR: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 2 column 10. Turned out to be a mis-typed API key.

@csy7550
Copy link

csy7550 commented Jan 22, 2014

Wrong API key? I still get this error after the latest couchpotato update with the right API Key.
ERROR: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 4.

edit: Listing "wanted" and "manage" works fine, you'll get the error when you open movie details.

@dmstocking
Copy link
Owner

Yah I knew this was going to happen. Basically, the couchpotato dev doesn't care about api compatibility and he broke it so now all the apps need to update.

@jkaberg
Copy link

jkaberg commented Mar 15, 2014

We do care about API consistency but trying to make everyone happy (by not keeping the API on par with the rest of the app) is also effectively holding back innovation. The changes made to the API is quite minor and is quite easy to patch up.

@sioban
Copy link

sioban commented Mar 17, 2014

Hi, I'm facing the same problem.
Is this will be corrected soon ?

@dmstocking
Copy link
Owner

Between a job, another programming side project, pool league, trying to be sociable, a lady, and who knows what else, I have had zero time to work on this or sickstashe. Not something I am really proud of, but I can't really help it right now. It is open source and I am semi proud that this app is fairly easy to understand and read. So if you want to update or fork it, I would be more then happy to help you with that.

@Blaat01
Copy link

Blaat01 commented Oct 5, 2014

I had not updated CouchPotato Server in a while so only recently ran into this error. The problem seems indeed to be with changes made in the CouchPotato server API. I could not find documentation about what exactly are the changes made to the API, but because some variables in the JSON have changed from an object containing multiple variables to a single string, the GSON parser will raise an IllegalStateException while trying to interpret this string as an object.
I have made a quick lazy fix in a fork: https://github.com/Blaat01/couch-tatertot which solves the error in the Movie List, selecting a movie will still raise a similar error though. I may look into a nicer coded solution later, but will not have the time to do so currently though, so this is a quick temporary solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants