@@ -26,7 +26,7 @@ import (
2626
2727 "github.com/go-jose/go-jose/v3"
2828 "github.com/go-jose/go-jose/v3/jwt"
29- "github.com/gofrs/uuid/v3 "
29+ "github.com/gofrs/uuid"
3030 "github.com/hashicorp/go-retryablehttp"
3131 "github.com/pkg/errors"
3232 "github.com/rs/cors"
@@ -376,7 +376,7 @@ func checkSession(c *retryablehttp.Client, r *http.Request, target *url.URL) (js
376376 target .Path = path .Join (target .Path , "sessions" , "whoami" )
377377 req , err := retryablehttp .NewRequest ("GET" , target .String (), nil )
378378 if err != nil {
379- return nil , errors .WithStack (herodot .ErrInternalServerError )
379+ return nil , errors .WithStack (herodot .ErrInternalServerError () )
380380 }
381381
382382 req .Header .Set ("Cookie" , r .Header .Get ("Cookie" ))
@@ -387,13 +387,13 @@ func checkSession(c *retryablehttp.Client, r *http.Request, target *url.URL) (js
387387
388388 res , err := c .Do (req )
389389 if err != nil {
390- return nil , errors .WithStack (herodot .ErrInternalServerError .WithReasonf ("Unable to call session checker: %s" , err ).WithWrap (err ))
390+ return nil , errors .WithStack (herodot .ErrInternalServerError () .WithReasonf ("Unable to call session checker: %s" , err ).WithWrap (err ))
391391 }
392392 defer res .Body .Close ()
393393
394394 var body json.RawMessage
395395 if err := json .NewDecoder (res .Body ).Decode (& body ); err != nil {
396- return nil , errors .WithStack (herodot .ErrInternalServerError .WithReasonf ("Unable to decode session to JSON: %s" , err ).WithWrap (err ))
396+ return nil , errors .WithStack (herodot .ErrInternalServerError () .WithReasonf ("Unable to decode session to JSON: %s" , err ).WithWrap (err ))
397397 }
398398
399399 return body , nil
0 commit comments