Skip to content

Conversation

@oliver006
Copy link
Contributor

When the http admin interface is disabled for a server the driver fails to connect. Reason is that the server_status table returns "http_admin_port": "<no http admin>" , but the driver expects the port to be a number. As a result, no connection can be made.

This PR changes the data type for HTTPAdminPort to string. Another way to fix this would be to remove the field, it's not used anyway.

This also fixes a bug in the example in the README.

@oliver006 oliver006 changed the title Change HTTPAdminPort type Can't connect to server with http admin turned off Apr 23, 2015
@dancannon
Copy link
Collaborator

Thanks for this @oliver006, I completely forgot that the HTTP admin port might not be set. That being said I think I agree with your point about removing the field since its completely unused. Would you be able to make this change?

@oliver006
Copy link
Contributor Author

Done.

@dancannon
Copy link
Collaborator

Amazing thanks! Ill get this merged in the next version (v0.7.2) however I am not sure when this is yet due to a couple of other issues.

@oliver006
Copy link
Contributor Author

Ok, sounds good.

dancannon added a commit that referenced this pull request May 5, 2015
Can't connect to server with http admin turned off
@dancannon dancannon merged commit e837083 into rethinkdb:master May 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants