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

Unable to get token #438

Closed
sathiez opened this issue Feb 11, 2019 · 2 comments
Closed

Unable to get token #438

sathiez opened this issue Feb 11, 2019 · 2 comments

Comments

@sathiez
Copy link

sathiez commented Feb 11, 2019

Hi,
when I use this prog to get token

` def get_token(oauth_key,oauth_secret,namespace,endpoint):

payload = {'grant_type': 'client_credentials'}

if namespace is None:

	key = oauth_key

else:

	key = oauth_key+namespace

response = requests.post(
			"http://"+endpoint+"/oauth/token",
			auth=HTTPBasicAuth(key, oauth_secret),
			data=payload)
print(response.text)
token =  response.json()["access_token"]
return token'

I get the following error,

  • Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
    172.17.0.1 - - [11/Feb/2019 07:12:00] "POST /oauth/token HTTP/1.1" 404 -

<title>404 Not Found</title>

Not Found

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

How can I solve it?

@ukclivecox
Copy link
Contributor

I assume you have port forwarded to 0.0.0.0:5000 ? What have you port-forwared? It should be the API Gateway if you are using OAuth.
404 suggest the endpoint does not exist.

@ukclivecox
Copy link
Contributor

I'm assuming this is fixed as stale. Please reopen if not @sathiez

agrski added a commit that referenced this issue Dec 2, 2022
* Remove Kotlin Gradle plugin as an implementation dependency

* Bump Kotlin Gradle plugin version to latest 1.6.x release

* Bump Kafka Streams version to latest 3.x release

* Bump Netty-shaded version for gRPC to latest 1.x release

* Formatting

* Reorder env vars for consistency in Compose manifest

* Add port-binding for scheduler data-flow service in bridge network mode

* Revert "Bump Netty-shaded version for gRPC to latest 1.x release"

This reverts commit 29ac4ace8d296033a50cd75023779dfe42d5f300.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants