Open berkanaslan opened 7 months ago
If an arror comes after disconnect event you must recreate the client
I also have this problem with just the example code. I found a quick fix, you can just comment out this line in auth.go:
a.client.Web.webLoginKey = *body.WebapiAuthenticateUserNonce
There are checks for webLoginKey and WebapiAuthenticateUserNonce in case it's empty but not before this assignment. I haven't tested it further as I'm just getting into this library but I might do a pull request with a fix at a later point in time.
The code is throwing panic with a "runtime error: invalid memory address or nil pointer dereference" during the execution of the Connect method. The panic is occurring in the Auth module, more precisely in the handleLogOnResponse function.
Steps to Reproduce: Call the Connect method with valid username, password, and twoFactorSecret parameters.
Error:
go 1.21 macOS 14.2.1