Connect before making query
Sometimes the error is in payload