Echo: Error with AutoTLSManager

Created on 13 Mar 2018  路  3Comments  路  Source: labstack/echo

/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/

Please use forum https://forum.labstack.com to ask questions!

/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/

Issue Description

Compile error when using Echo.

Checklist

  • [x] Dependencies installed
  • [x] No typos
  • [x] Searched existing issues and docs

Expected behaviour

Actual behaviour

vendor/github.com/labstack/echo/echo.go:614:51: e.AutoTLSManager.HTTPHandler undefined (type autocert.Manager has no field or method HTTPHandler)

Steps to reproduce

Working code to debug

package main

import "github.com/labstack/echo"

func main() {
    e := echo.New()

    e.Start(":")
}

Version/commit

v3.3.0

question

Most helpful comment

I'm using Glide actually, the problem doesn't come from Echo but from etcd, it's forcing an old version of the golang.org/x/crypto.
I'm closing this issue, thank you for your time :+1:

All 3 comments

You seem to have a stale acme/autocert library. autocert.Manager DOES currently have that method: https://godoc.org/golang.org/x/crypto/acme/autocert#Manager.HTTPHandler I suggest a go get -u golang.org/x/crypto/acme/....

I'm using Glide actually, the problem doesn't come from Echo but from etcd, it's forcing an old version of the golang.org/x/crypto.
I'm closing this issue, thank you for your time :+1:

You're most welcome :) Cheers!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

neutronstein picture neutronstein  路  3Comments

dre1080 picture dre1080  路  4Comments

arun0009 picture arun0009  路  3Comments

leoycx picture leoycx  路  4Comments

vishr picture vishr  路  3Comments