Hello. I am getting this error when trying to authenticate through a github app, whether published or not: 2017-06-12T08:50:22.240876853Z time="2017-06-12T08:50:22Z" level=error msg="cannot authenticate user. GET https://api.github.com/user/emails: 404 Not Found []"
I have tried versions 0.7, 0.7.1 and latest.
This API all is used to fetch the individual email addresses for the user attempting to login. In this case the error indicates that github could not find any associated email addresses, and therefore returned a 404.
Note that you cannot login to Drone if the above GitHub API call does not return a verified, primary email address.
I believe my github account has an email address somewhere in it. Do you think that it should be enabled somewhere in your account to expose your email to OAuth apps? If this is true then I think that this error should be exposed to drone user.
The email endpoint (https://api.github.com/user/emails) returns emails that are managed at the following account settings screen in github: https://github.com/settings/emails
If the API call is not returning a valid email list, and is instead returning a 404, please contact GitHub support. I am not able to help troubleshoot the results of their API endpoints.