mattermost-plugin-gitlab
mattermost-plugin-gitlab copied to clipboard
How to avoid "Token was revoked:" in Mattermost Logs
We are seeing lots of the following "errors" in our Mattermost logs and I am not sure if the information is truly an "error" or just informational:
mattermost[59025]: {"level":"error","ts":1585021388.8111477,"caller":"mlog/sugar.go:23","msg":"unable to list merge-request where assignee in GitLab API","plugin_id":"com.github.manland.mattermost-plugin-gitlab","err":"GET https://gitlab.example.com/api/v4/merge_requests: 401 {error: invalid_token}, {error_description: Token was revoked. You have to re-authorize from the user.}"}
Hey @attzonko, it is truly an error. User is not authorized and every Hook will output this error.
I noticed gitlab.example.com url in the logs. The actual url is just changed right?
Hey @attzonko, it is truly an error. User is not authorized and every Hook will output this error. I noticed
gitlab.example.comurl in the logs. The actual url is just changed right?
You are correct the real URL is indeed different, I changed it to avoid posting it publically.
@attzonko did you figure out cause of the errors?
Is there someway to fix/workaround this? Its confusing.
Closing due to inactivity. The issue can be reopened with more interest from our community.
Reopen this please. This is an open bug. Closing due to inactivity after no response from a contributor is not the fine way...