dafthack / dafthack/MailSniper
The underlying connection was closed: An unexpected error occurred on a send.
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 3.3k
- Forks
- 597
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 1
Description
I seem to keep getting this error when attempting to download the GAL
Get-GlobalAddressList : Exception calling "ResolveName" with "1" argument(s): "The request failed. The underlying connection was closed: An unexpected error occurred on a send."
At line:1 char:1
+ Get-GlobalAddressList -OutFile gal.txt -ExchHostname ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-GlobalAddressList], MethodInvocationException
+ FullyQualifiedErrorId : ServiceRequestException,Get-GlobalAddressList
I am supplying ExchHostname, UserName, and Password values. I have also tried several different ExchangeVersion values without success.
I have also found this article
https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online
As of Oct 1, 2022, Microsoft has deprecated basic authentication for EWS. I assume this is related and the cause of this error? Not positive though. If this is an error from basic auth's deprecation, it might be nice to catch this and print an explanation to console.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Get-GlobalAddressList failure with the supplied ExchHostname, UserName, Password, and ExchangeVersion values, then trace the ResolveName request. Compare the behavior with Microsoft's basic-authentication deprecation guidance; done means confirming the cause and determining whether the command can report a useful explanation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- authentication, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100