pimguilherme opened a new issue, #7478: URL: https://github.com/apache/incubator-devlake/issues/7478
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues. ### What happened Hi! Hope all is well over there :) I am not sure why this happens and can't tell the exact behavior, but we're seeing unexpected "Bad credentials" errors when accessing a specific Github plugin endpoint, like this: https://devlake/api/plugins/github/connections/3/proxy/rest/repos/my-org/my-repo We use this endpoint when orchestrating the creationg of blueprints/projects from an API of ours (to abstract that away from the end user). This seemed to work fine in version 0.17 This is the response we get ``` { "message": "Bad credentials", "documentation_url": "https://docs.github.com/rest" } ``` Other Github connections seem unnaffected, and the authentication method we use for all of them is the same - github app. And it's also the same github app for all of them (which are just different orgs) Apparently if I re-save the connection settings with the same token, things start working again.. I'm wondering if there's some sort of expired token being used here.. like it doesn't refresh it for some reason? Would you be able to help us understand this please? one thing to note.. we've noticed our instance crashes quite often (about 3-4 times a day, haven investigated it very much, but apparently with OOM).. maybe this contributes to an unknown state, so wanted to share it as a workaround, we are looking to perhaps trigger the connection settings update every 30 minutes or so Thanks! ### What do you expect to happen We would expect the token to refresh properly (assuming we are using an expired token), and then we would not get Bad Credentials ### How to reproduce Not sure yet.. ### Anything else It seems to occur every day, quite frequently.. this is the rate for the last 3 days:  ### Version v0.21.0-rc1@ac4f7fe ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org