On Friday, June 24, 2016 at 9:19:18 PM UTC+8, Jens wrote: > When i would like to create an exe of influxdb i receiving this error: > > > C:\Go\Projects\src\github.com\influxdata\influxdb>go install ./... > # github.com/influxdata/influxdb/services/httpd > services\httpd\handler.go:793: invalid operation: token.Claims["exp"] (type > jwt.Claims does not support indexing) > services\httpd\handler.go:799: invalid operation: token.Claims["username"] > (type jwt.Claims does not support indexing) > > > What is going wrong ?
I think the problem is related to the recently change on "jwt-go" Please check the MIGRATION_GUIDE.md on Github: https://github.com/dgrijalva/jwt-go/blob/d2709f9f1f31ebcda9651b03077758c1f3a0018c/MIGRATION_GUIDE.md "Token.Claims is now an interface type". 1. It should add a token.Claims claims := token.Claims.(jwt.MapClaims) 2. update the token.Claims["username"] & token.Claims["exp"] to claims["username"] & claims["exp"] -- Remember to include the InfluxDB version number with all issue reports --- You received this message because you are subscribed to the Google Groups "InfluxDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/2bf1e026-49e1-4735-a801-743664771c80%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
