baseapp icon indicating copy to clipboard operation
baseapp copied to clipboard

type *revel.RevelHeader does not support indexing

Open slowkow opened this issue 6 years ago • 0 comments

Thanks for making this package! I'm new to go and revel, and this looks like a nice place to start.

I tried installing your package, but I get some errors. Do you have any tips? Perhaps an update to the revel package broke the baseapp? I'm not sure.

go get github.com/richtr/baseapp/...

# github.com/richtr/baseapp/vendor/github.com/revel/modules/jobs/app/controllers
work/go/src/github.com/richtr/baseapp/vendor/github.com/revel/modules/jobs/app/controllers/status.go:18:51: invalid operation: c.Controller.Request.Header["X-Forwarded-For"] (type *revel.RevelHeader does not support indexing)
# github.com/richtr/baseapp/app/controllers
work/go/src/github.com/richtr/baseapp/app/controllers/app.go:73:37: c.Controller.Request.Request undefined (type *revel.Request has no field or method Request)
work/go/src/github.com/richtr/baseapp/app/controllers/app.go:85:37: c.Controller.Request.Request undefined (type *revel.Request has no field or method Request)

If I setup the config file, ignore the installation error, and try running a test server anyway, I get this:

revel run github.com/richtr/baseapp test

ERROR 09:49:09  revel  build.go:146: # github.com/richtr/baseapp/vendor/github.com/revel/modules/jobs/app/controllers
work/go/src/github.com/richtr/baseapp/vendor/github.com/revel/modules/jobs/app/controllers/status.go:18:51: invalid operation: c.Controller.Request.Header["X-Forwarded-For"] (type *revel.RevelHeader does not support indexing)
# github.com/richtr/baseapp/app/controllers
work/go/src/github.com/richtr/baseapp/app/controllers/app.go:73:37: c.Controller.Request.Request undefined (type *revel.Request has no field or method Request)
work/go/src/github.com/richtr/baseapp/app/controllers/app.go:85:37: c.Controller.Request.Request undefined (type *revel.Request has no field or method Request)

slowkow avatar Jan 30 '18 14:01 slowkow