mattermost-plugin-gitlab icon indicating copy to clipboard operation
mattermost-plugin-gitlab copied to clipboard

How to avoid "Token was revoked:" in Mattermost Logs

Open attzonko opened this issue 5 years ago • 4 comments

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

attzonko avatar Mar 24 '20 03:03 attzonko

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?

iomodo avatar Apr 11 '20 12:04 iomodo

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?

You are correct the real URL is indeed different, I changed it to avoid posting it publically.

attzonko avatar Apr 15 '20 04:04 attzonko

@attzonko did you figure out cause of the errors?

iomodo avatar Apr 22 '20 18:04 iomodo

Is there someway to fix/workaround this? Its confusing.

aconitumnapellus avatar Oct 18 '21 13:10 aconitumnapellus

Closing due to inactivity. The issue can be reopened with more interest from our community.

wiersgallak avatar Jun 14 '23 01:06 wiersgallak

Reopen this please. This is an open bug. Closing due to inactivity after no response from a contributor is not the fine way...

aconitumnapellus avatar Jun 14 '23 11:06 aconitumnapellus