giuliov / hugo-vsts-extension

Generate a site using Hugo, a Fast and Flexible Website Generator, running in Visual Studio Team Services or Team Foundation Server.
MIT License
24 stars 15 forks source link

The request was aborted: Could not create SSL/TLS secure channel. #4

Closed tigrannajaryan closed 6 years ago

tigrannajaryan commented 6 years ago

I am trying to build by Hugo static web using this extension and the following error. My best guess is it fails when it attempts to download Hugo executable.

******************************************************************************
Starting: Hugo generate
******************************************************************************
==============================================================================
Task         : Hugo
Description  : Generate a static web site using Hugo, a Fast and Flexible Website Generator
Version      : 1.0.0
Author       : Giulio Vian
Help         : [More Information on Task](https://github.com/giuliov/hugo-vsts-extension/README.md), for [Information on Hugo](https://gohugo.io/).
==============================================================================
The request was aborted: Could not create SSL/TLS secure channel.
******************************************************************************
Finishing: Hugo generate
******************************************************************************

Here are my settings:

screenshot_1

Is there any other information I can supply to help diagnose? Thank you.

petersendev commented 6 years ago

Hi, this is already fixed in code, but not deployed to the marketplace yet (waiting for the maintainer). See #2 (PR #3 )

As a workaround you can use this powershell script (just set BASEURL and HugoVersion variables): https://gist.github.com/petersendev/ab08c5280d1a3705e43aa11d2148dca6 You can customize hugo parameters in the last line.

tigrannajaryan commented 6 years ago

Thanks, as a workaround I ended up committing hugo executable to my repo and calling it directly during the build.

giuliov commented 6 years ago

Sorry for the delay. I updated the extension, let me know if you find any issue. I close the ticket for now.

jeromechrist commented 6 years ago

@giuliov thx, builds are passing 👍