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

Error on Get method from ReadMe file #17

Open
marcwanninger opened this issue Dec 16, 2019 · 0 comments
Open

Error on Get method from ReadMe file #17

marcwanninger opened this issue Dec 16, 2019 · 0 comments

Comments

@marcwanninger
Copy link

Hi, after running (from readme file):
curl -X POST --user 'gigy:secret' -d 'grant_type=password&username=peter@example.com&password=password' http://localhost:8000/gigy/oauth/token

it returns:
{"access_token":"b53fb693-d081-42fe-b1f2-574573c7ac81","token_type":"bearer","refresh_token":"684574bd-9342-45dc-943a-5c8b013e382f","expires_in":359999,"scope":"read write"}Marcs-MacBook-Pro:~ marc$

but after then running (from readme file):
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -X GET http://localhost:8000/gigy/people

it returns:
HTTP/1.1 401
Cache-Control: no-store
Pragma: no-cache
WWW-Authenticate: Bearer realm="null", error="invalid_token", error_description="Invalid access token: "
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 16 Dec 2019 03:33:09 GMT

{"error":"invalid_token","error_description":"Invalid access token: "}Marcs-MacBook-Pro:~ marc$


i haven't changed anything or modified any code, just cloned repo & ran springboot app before running the readme file commands in terminal... can you please show me how to resolve this error?

here's a screenshot of terminal also (same as pasted above)
gigy_error_on_get

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

1 participant