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

LogEvent says '{"message":"Method Not Allowed"}' #30

Closed
bartashevich opened this issue Jan 16, 2019 · 6 comments
Closed

LogEvent says '{"message":"Method Not Allowed"}' #30

bartashevich opened this issue Jan 16, 2019 · 6 comments

Comments

@bartashevich
Copy link

I'm trying to setup LogEvents, where I already setup MySQL database and now I'm trying to setup register notification.

But when I perform curl -i -H "Authorization: Bearer $TOKEN register:8000/api/events

It responds with:
HTTP/1.1 405 Method Not Allowed
Content-Type: application/json; charset=UTF-8
Date: Wed, 16 Jan 2019 12:20:32 GMT
Content-Length: 32

{"message":"Method Not Allowed"}

@roman-vynar
Copy link
Contributor

/api/events takes only POST, there is no reason for GET.

@bartashevich
Copy link
Author

I changed to -X POST and now it gives {"message":"Unauthorized"}

Probably because my token is invalid. How can I get the token?

@roman-vynar
Copy link
Contributor

roman-vynar commented Jan 16, 2019

Why not to try with a real registry even a testing one?

@bartashevich
Copy link
Author

I have a register and it is using cesanta/docker_auth for the authentication. Just how can I extract token?

@roman-vynar
Copy link
Contributor

Actually, there is no easy way to retrieve it, you need to enable debug and print it, then it can be used until expired.

@roman-vynar
Copy link
Contributor

Closing this as there are no real issues with notification events.

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

2 participants