Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of warnings and errors when using Kitura-Session-Kuery #2

Open
diuming opened this issue Oct 27, 2020 · 0 comments
Open

Lots of warnings and errors when using Kitura-Session-Kuery #2

diuming opened this issue Oct 27, 2020 · 0 comments

Comments

@diuming
Copy link

diuming commented Oct 27, 2020

macOS 10.15.6
Xcode 11.6
Swift 5.2.4

Use Session InMemory works very well.

let session = Session(secret: "Session")
application.router.all(middleware: session)

but Use Session Kitura-Session-Kuery lots of warnings and errors

application.database.pool.getConnection { (connection, error) in
    if let connection = connection {
        let kueryStore = KueryStore(connection: connection)
        let session = Session(secret: "Session", cookie: [.maxAge(11400)], store: kueryStore)
        application.router.all(middleware: session)
    }
}

error XXX : HMAC doesn't match expected HMAC in cookie decoding
warning XXX : RouterResponse send(data:) invoked after end() for http://192.168.1.100:8080/
warning XXX : RouterResponse end() invoked more than once for http://192.168.1.100:8080/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant