-
Notifications
You must be signed in to change notification settings - Fork 21
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
panic: interface conversion: interface {} is nil, not map[string]interface {} #14
Comments
this fixes the panic: #15 |
@stevenaldinger: how do you fix this? |
@gobliggg in replace: itemsMap := message.(map[string]interface{}) with a check that the conversion is successful. keep in mind there's likely some deeper rooted issue that the conversion failed to begin with, but its still important to be catching errors like this. I'm not sure what appropriate error handling should be happening here, this just completely ignores the error instead of letting it panic: itemsMap, ok := message.(map[string]interface{})
if !ok {
return
} |
Appears to be fixed in |
This happens a few seconds after successfully connecting to the server when I run the code in the README. No message is being published and there's nothing but a fmt.Println in my
startCode
function.Is this client maintained/expected to work with the latest socketcluster server release?
The text was updated successfully, but these errors were encountered: