Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Json prase probelm #38

Open
dweber019 opened this issue Mar 31, 2015 · 2 comments
Open

Json prase probelm #38

dweber019 opened this issue Mar 31, 2015 · 2 comments

Comments

@dweber019
Copy link

When I try to login with a user I get the following error appears:

Unable to communicate with server - Could not read JSON: No content to map due to end-of-input at [Source: org.apache.http.conn.EofSensorInputStream@161e6025; line: 1, column: 2482]; nested exception is com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input
 at [Source: org.apache.http.conn.EofSensorInputStream@161e6025; line: 1, column: 2482]

This is the response I get from my token endpoint, which is for the CF-CLI fully valid and works.

{"access_token":"eyJhbGciOiJSUzI1NiJ9...","token_type":"bearer","refresh_token":"eyJhbGciOiJSUiJ9...","expires_in":599,"scope":["password.write","cloud_controller.write","openid","cloud_controller.read"],"jti":"0eb132c2-f400-4b27-bfd5-8a0315284d2e","sub":"123321-1233-4353-8490-e1df73ef239c","client_id":"cf","cid":"cf","azp":"cf","grant_type":"password","user_id":"1234567-1234-2343-8490-e1df73ef239c","user_name":"username1","email":"my@mail.com","iat":1427816165,"exp":1427816765,"iss":"https:\/\/uaa.xyx.ch\/oauth\/token","aud":["cf","password","cloud_controller","openid"]}

Thanks for you help
Dave

Here some more information:
Plugin version: 1.8.1 (A collegue of mine also tried this with version 1.8)
This happens when I try to login into a CF within the wizard of creating a new CF server.

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/91535342.

@jonnybbb
Copy link

According to the spec the scope attribute should be a single string instead of an array. Within this string you could have multiple values separated by space.

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

No branches or pull requests

4 participants