Coder Social home page Coder Social logo

Comments (8)

PrzemyslawKlys avatar PrzemyslawKlys commented on May 29, 2024

I've moved this to a proper repository. Just tested on 7.0, 5.1, and 6.2.3 and it seems to work fine here.

from pswindocumentation.o365healthservice.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 29, 2024

But to be honest I've got a similar report few days ago over the email

image

Which looks exactly like yours.

from pswindocumentation.o365healthservice.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 29, 2024

Maybe this:

https://blogs.msdn.microsoft.com/webdav_101/2019/02/28/invoke-restmethod-the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send-while-using-powershell/

If you have gotten the "Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a send." error while using PowerShell then add the line below to your script.

​[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

PowerShell calls uses TLS 1.0 for web requests by default. However, Exchange is expecting a higher level of TLS, so you need to tell PowerShell to use 1.2 instead of the default of TLS 1.0.

Below are links for additional information:

from pswindocumentation.o365healthservice.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 29, 2024

Have you enforced TLS 1.2 recently? Can you verify this?

from pswindocumentation.o365healthservice.

br-rafael-martins avatar br-rafael-martins commented on May 29, 2024

Perfect !!!
I Add

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

and now it's ok !

from pswindocumentation.o365healthservice.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 29, 2024

Ok, I'll add it to the code and publish a new version. Sorry for the inconvenience.

from pswindocumentation.o365healthservice.

br-rafael-martins avatar br-rafael-martins commented on May 29, 2024

There was no inconvenience ;). I appreciate your excellent work in making this module.

from pswindocumentation.o365healthservice.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 29, 2024

Please test the new version. Update-Module ... and then restart PS and let me know. Thank you!

from pswindocumentation.o365healthservice.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.