New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphQL error: Invalid email address on EMU #5842
Comments
I'm adding some additional logging with #5870. If you could try the pre-release version of the extension tomorrow and set the log level to debug (command Developer: Set Log Level -> GitHub Pull Request -> Debug), then you'll get the new logging. Once you have the new logging, can you try to reproduce the issue then check the GitHub Pull Request output for a log like that says "Merging PR"? That line will also include the email address. Can you confirm whether that email address is correct? |
I had this same issue, so I captured a log with the pre-release version. I did not see anything in the log that says "Merging PR". Below is from selecting the correct email address, then pressing Squash and Merge. The -1 cost and undefined are interesting. It may be stopping on error before your new debug line.
|
I'm getting this same error 2024-04-03 18:35:13.970 [debug] RateLimit> Extension rate limit remaining: 140, undefined GitHub Pull Requests v0.82.1 Version: 1.87.2 (system setup) I also tried on |
Thanks for the logs, but they are missing the new log line. The latest pre-release version of the extension requires that you use VS Code insiders (at least it will for a few more hours, there should be a new stable version of VS Code and the extension today). |
I did switch to the insiders plugin. I think the error happens earlier on. |
Hey @alexr00, I updated my VSCode and I'm on the latest pre-release of GitHub Pull Requests. GitHub Pull Requests: v0.87.2024040414 (pre-release) Version: 1.88.0 (system setup) The issue still exists. Unable to merge pull request. GraphQL error: Invalid email address
Thanks! |
@ericohlin thanks for sharing those log! Is the email address listed in the logs the one that you expected the merge to be associated with? No extra spaces or other incorrect characters? |
Hey @alexr00, thank you for the quick response. Yes, that's correct. I sanitized the log before sharing. To double-check, I copied the value from the log into Beyond Compare and then manually typed my email address, and they appear to be a 100% match. Everything looks exactly as it should. |
Ok, I'm not sure what's going on here then. Does your email address have any special characters? If you go to github.com to merge the PR are you allowed to select this email address there? |
Good morning. There are no special characters in my email address. If I go to github.com and merge the PR, when I click on Merge Pull Request, it says just above the Commit Merge button This commit will be authored by [email protected] and the email address is identical to the one in the logs. This may be helpful, or maybe it's not, but this PR also has a commit from another team member. There are two total commits, one from me and one from my teammate. |
This is exactly what I needed to know, though I don't see why this can happen.
Maybe. Let's see if we can find the exact combination that can cause this:
|
I can confirm that the email address is correct. I have monitored the GraphQL query with Fiddler, and even recreated the request with the GitHub GraphQL Explorer. It is always the same result, "Invalid email address." If I remove the I'm starting to wonder if this is a Github issue. Can anybody successfully perform a merge pull request with GraphQL while supplying an To answer your questions:
|
Did you create the PR, or did your colleague? |
Thanks for all the details! I'll try this out with a private, org owned, repo. I do expect that this is a GitHub issue. I'm just trying to find a way I can repro the issue so I can tell the GitHub folks how to repro it. |
Tried with a private, org owned, repo. I still can't repro the issue. |
We are experiencing the same issue by all users. Org owned Repo's Our email is the format Firstname_surname@domain Works Fine from the web |
Can you grab the API query with Fiddler. Maybe we can compare how it is different. As mentioned, I grabbed the query being sent to Github and it had what looked like a valid formed request, with the proper email address, yet it still fails when submitting directly. I wonder how your request looks different. Perhaps it is something on the Github side that has to do with a certain repo setting, or what not. |
Hey @alexr00, I was able to reproduce this error again with a brand new PR; this time, I was the only contributor. Private, org-owned, repo, solo contributor. What do you need from me? 😄 Thanks! |
I have encountered this problem. My details are similar to those described in #5842 (comment). github.com does have the "GitHub Enterprise" label you asked about in the above comment. |
This is great news. I'll disable this feature for Enterprise. I'm guessing Enterprise just never supports setting an email because you'll only have one email associated with your enterprise account. |
The fix has been available in the pre-release version of the extension for a couple days. Could some of the folks in this thread install the pre-release version and let me know if it solves the issue? |
@alexr00 this resolved the issue for me. I'm on version v0.89.2024050704 (pre-release). Thank you! 🙇🏻 🙇🏻 |
Thanks for verifying and for your patience while I found a fix! |
Confirmed working in latest release. Thank you very much. |
It looks like this issue added a email address selection when creating a merge commit: #5326
I have been unable to submit a merge commit through vscode for probably a month now. I can everything but submit the merge commit. I have to go to the Github UI to do that.
When I click to,
Create Merge Commit
, I getUnable to merge pull request. GraphQL error: Invalid email address
Yet, in the details of the merge commit I see
Commit will be associated with <my valid email>
.I'm not sure what else I can look for here. I'm not sure if I need to reset a setting somewhere, or what. Everything about the pull request extension seems to work fine, so I know it is recognizing my email and user account properly.
What else can I do to provide more detail or troubleshoot the issue?
The text was updated successfully, but these errors were encountered: