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

RESPError #1

Open
epoll-j opened this issue May 31, 2018 · 3 comments
Open

RESPError #1

epoll-j opened this issue May 31, 2018 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@epoll-j
Copy link

epoll-j commented May 31, 2018

when i set a value, i get a error

let loopGroup = MultiThreadedEventLoopGroup(numThreads: System.coreCount)
let option = RedisClientOptions(port: 6379, host: "127.0.0.1", password: "1234567", database: nil, eventLoopGroup: loopGroup)
let client = RedisClient(options: option)

client.set("aa", "11") { (error, esp) in
    print(error)
    print(esp)
}

it will print

nil
Optional(<Error: RESPError(_storage: NIORedis.RESPError.(_Storage in _00741320934968E7EEA61F1326A5517D))>)
@helje5
Copy link
Member

helje5 commented May 31, 2018

Can you print:

error?.code

and

error?.message

(I also added a better debug description to the head version)

Since you are passing a password, I think that this is probably the issue. The lib doesn't support them right now.

@helje5 helje5 added the question Further information is requested label Jun 1, 2018
@epoll-j
Copy link
Author

epoll-j commented Jun 2, 2018

@helje5 error is nil, respValue is "<Error: RESPError(_storage: NIORedis.RESPError.(_Storage in _00741320934968E7EEA61F1326A5517D))>"

client.set("aa", "11") { (error, resp) in
    print(error) // nil
    print(resp) // <Error: RESPError(_storage: NIORedis.RESPError.(_Storage in _00741320934968E7EEA61F1326A5517D))>
}

@helje5
Copy link
Member

helje5 commented Jun 2, 2018

Oh right, sorry, I misread that. That is wrong for sure, I'll check.

@helje5 helje5 added bug Something isn't working and removed question Further information is requested labels Jun 2, 2018
@helje5 helje5 self-assigned this Jun 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants