This is usually due to not being able to connect from a standalone test, either. BTW you probably want to set blocking = true.
It works for me...
it solved my problem.
Wow, I just ran into a different but related problem and came across your post. It solved my problem, so thanks for taking time to post.