Quiq/registry-ui

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

bartashevich opened this issue · 6 comments

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"}

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

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

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

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

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

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

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