In my integration, I respond to integration installation by cloning the repositories (then do some analysis and send a PR) and to PR reviews (what exactly depends on the review, but the first thing I’ll do is fetch the comments associated with the review). I’m seeing occasional errors in the log that I can best explain to myself as racing with the server-side update. During cloning of the repository, this manifests itself as a 401 and while retrieving the comments for a review, I sometimes get:
SERVER ERROR: Error found in GitHub reponse: Status Code: 422 Message: Validation Failed Docs URL: https://developer.github.com/v3/pulls/reviews/#get-a-single-reviews-comments Errors: Any["Could not resolve to a node with the global id of 'MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NTU4Njk0ODk='."]
Redelivering the same notification immediately afterwards usually seems fine, so I suspect my code is ok, but of course I can’t exclude the possibility that something is wonky on my end as well? Is there a recommended best practice (e.g. wait a few milliseconds before handling a request or just retry until it work or sth)? I’ll try to do a traffic between my app and GitHub as well, in case that would be helpful.