teslamateapi icon indicating copy to clipboard operation
teslamateapi copied to clipboard

Receive a "200 OK" response after trying to set commands, but nothings happens.

Open leppenraub opened this issue 3 years ago • 1 comments

Tried with and without API-TOKEN, the log says: `2022/09/16 11:01:34.539935 [info] checkAuthToken - returning true 2022/09/16 11:01:34.539948 [debug] validateAuthToken - header authorization bearer token valid.

2022/09/16 11:01:34 [Recovery] 2022/09/16 - 11:01:34 panic recovered: cipher: message authentication failed /go/src/EncryptionSupport.go:97 (0x7b8673) /go/src/v1_TeslaMateAPICarsCommand.go:111 (0x7bb4ab) /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0x7b5d2f) /go/pkg/mod/github.com/gin-contrib/[email protected]/handler.go:60 (0x7b5d08) /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0x75ec21) /go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:101 (0x75ec0c) /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0x75dd06) /go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:240 (0x75dce9) /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 (0x75cdd0) /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:616 (0x75ca38) /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:572 (0x75c6fc) /usr/local/go/src/net/http/server.go:2916 (0x64afda) /usr/local/go/src/net/http/server.go:1966 (0x647796) /usr/local/go/src/runtime/asm_amd64.s:1571 (0x463760) `

leppenraub avatar Sep 16 '22 09:09 leppenraub

Hi @leppenraub,

Could you provide us with some more details, like version of TeslaMate and TeslaMateApi? There is a version dependency between the two applications due to the implementation of encryption of tokens. Could maybe be that you haven't set the encryption keys correctly for both applications as well.

Regards, Tobias

tobiasehlert avatar Sep 16 '22 21:09 tobiasehlert