Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 19:20
    amirrezaask starred labstack/echo
  • 19:13
    codecov[bot] commented #1403
  • 19:13
    codecov[bot] commented #1403
  • 19:08
    codecov[bot] commented #1403
  • 19:08
    codecov[bot] commented #1403
  • 19:08
    jimyx17 synchronize #1403
  • 18:48
    codecov[bot] commented #1403
  • 18:47
    codecov[bot] commented #1403
  • 18:45
    codecov[bot] commented #1403
  • 18:43
    jimyx17 opened #1403
  • 18:14
  • 18:13
    jimyx17 closed #1399
  • 18:12
    codecov[bot] commented #1399
  • 18:12
    codecov[bot] commented #1399
  • 18:12
    jimyx17 synchronize #1399
  • 14:00
    tadyjp edited #1402
  • 13:58
    tadyjp edited #1402
  • 13:57
    tadyjp opened #1402
  • 11:08
    Demetri0 commented #1343
  • 11:06
    Demetri0 commented #1343
Adam Flott
@adamflott
Is there a way to disable a route at runtime?
A quick glance at the docs/code says no, but maybe I missed something
Arthur
@ArthurZ
Hi, how do we call an external REST API in Echo? The intent is to process JSON returned.
Jon-Eric Cook
@jonericcook
Hello
i am curious if anyone can help resolve an issue I am having. I copy pasted this code into my editor and I am getting the following error
cannot use middleware.Logger() (value with invalid type) as echo.MiddlewareFunc value in argument to e.UseLSP
the code i copied is from here
Qcho
@qcho
Hello! Loving Echo! "stupid question alert". Is there anything like gin.SetMode(gin.releaseMode) ?
Ivan Skiridomov
@boskiv
What do you use for facebook and google authorization with echo ?
ituxka
@ituxka
any caching mechanics out there?
zzd
@zdwork
How can the next two processes share the same local suite word?
I want a smooth upgrade
I am Chinese and hope to get your help
zzd
@zdwork
i请问下有人吗
Devying
@Devying
有人吗
othonas soultatos
@sultatos
hello all, i am trying to use jwt, but the JWT that is send to me has the secret part base64 Encoded so the jwt middleware throws invalid token. How do i make it work?
othonas soultatos
@sultatos
jwt.io valid token to JWT
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NjE5NTcxMzZ9.RB3arc4-OyzASAaUhC2W3ReWaXAt_z2Fd3BN4aWTgEY
jwt.io secret base64 encoded token (Send to my framework)

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0NjE5NTcxMzZ9.3Lgl_HITxQsQbEu-23QVeDrcktpYIHBAhECGWqGZOhk
jamemyjamess
@jamemyjamess
Excuse me, How to handling request API same time. To prevent race condition with DB
Trandzient
@trandzient
Quick question, how do we reference routes in the html templates? Something like {{my_uri}}?
Trandzient
@trandzient
<a href="{{my_registered_go_route_here}}"></a> - I am more or less looking for the equivalent of url_for() in Flask.
Kovalchuk Evgeny
@Senpos
Hi there. Just wanted to thank you all for working on the Echo itself and being the part of this community. It looks incredible and has so many features. I can't image how much effort was put into this library. You rock. :) Have a good day.
Atilla Çelebi
@AtillaCelebi06_twitter
Hi there. I am trying to build my golang app but i got failed because of echo dependency installation error with glide.
[ERROR] Error scanning github.com\labstack\echo\v4: cannot find package "." in:
C:\Users\meteh.glide\cache\src\https-github.com-labstack-echo\v4
how can i resolve this error, thanks in advance.
The package already installed and my api is run well when i run "go run main.go"
Jacob Straszynski
@jacobstr
I'm trying to follow the example here, roughly https://echo.labstack.com/guide/testing and finding that my response recorder isn't populated with the body / status code that I expected when I return an error.
Jacob Straszynski
@jacobstr
Same issue as this guy: labstack/echo#593
Is there a way to invoke the error handling machinery such that I can make assertions against the response instead of the returned error? Deliberately going for an integration test here.
It introduces some extra boilerplate where depending on whether the handler returned an error or not, you need to structure your assertions differently vs. simply always check the rec.Code.
Jacob Straszynski
@jacobstr
            if createErr == nil {
                if rec.Code != tt.WantStatus {
                    t.Fatalf("Expected %d, got %d", tt.WantStatus, rec.Code)
                }
            } else {
                he, ok := createErr.(*echo.HTTPError)
                if ok && he.Code != tt.WantStatus {
                    t.Fatalf("Expected %d, got %d", tt.WantStatus, rec.Code)
                }
            }
Kan Wongsawan
@gunzgo2mars
Hello, guys.
How can I get data from http header in echo?
que.py
@slimack
Is a way to use Unix Sockets with golang?
with echo?
Bitcollage
@SerkanSipahi
https://echo.labstack.com is down!
Bitcollage
@SerkanSipahi
In the meantime the content of https://echo.labstack.com can also be reached via github: https://github.com/labstack/echox/blob/master/website
Nikunj
@nikunjbadjatya

Hi.
I am using echo version v4.1.0.
Observing that in an http request, information which is set in echo context using echo.Context.Set() and retrieved back using echo.Context.Get() in the same http request, across middlewares, is found to have leaking information from different requests.

The .Get() method is giving back data which was .Set() in some other http request.
Looked around for similar issue and found this link labstack/echo#273 which says the echo context was made concurrent safe in labstack/echo#1158
But the issue still coming.

I do not have a publicly shareable code yet but it is doing the following:

  • start logger
  • calls echo's 'requestid' middleware.
  • custommiddleware1: does a c.Set("uniquecustomerid", <unique int>). This unique ID is logged in a log file alongwith the requestid set above.
  • custommiddleware2: does a c.Get("uniquecustomerid") and logs it alongwith the requestid set above. This is logging customer ID which was set in some other request.

This is seen only under high load and reproduction is not trivial.
Any pointers ?

Christian Giacomi
@cgiacomi
Does anyone know how to set the log level for the Logger? I tried to use 'e.Logger.Warn("test")' and nothing is printed in the console
thanks
Christian Giacomi
@cgiacomi
eheh ok, I dug a little more around the source code and I found that this is how it's done.
e.Logger.SetLevel(log.DEBUG)
Siddharth Prakash Singh
@spsneo
Does echo work well with go modules?
Christian Giacomi
@cgiacomi
hey, my REST api's are using go modules... haven't run into any issues yet
Siddharth Prakash Singh
@spsneo
@cgiacomi Thanks.
hudsonvalleycloudcomputing
@hudsonvalleycloudcomputing
Is there a working example of echo with appengine go111 runtime. The example works with the go1.9 runtime which is being deprecated Oct 1
David J. Davis
@david-j-davis
Does anyone have an example of Echo working on Google Cloud Run?
Shubham Jain
@jsjain
hello, I am new to golang and just wanted to implement basic user authenticated page,
in which after passing the request through middleware
I would like to set user in the context so that in handlers I can access the user directly.
Is there a way to set map in the request context in echo ?
Shubham Jain
@jsjain
I checked from the source code: echo.Context has 2 funcs Set and Get, but Is it the right way to do it ?
Trandzient
@trandzient
Last commit was 27 days ago, are the echo developers still alive? :D
Nonny Psk
@ivybridge-3c33
@Trandzient hahahahhaha
Trandzient
@trandzient
Ladies and Gentleman, I have created this group on Facebook for Echo, feel free to join: https://www.facebook.com/groups/483305545783092/