Skip to content

Conversation

@aboudreault
Copy link
Contributor

No description provided.

We set out to build a Flask app that talks to Astra.
The CQL plugin we used turned out to be crashing if we didn't give it hosts to connect to (https://github.com/thegeorgeous/flask-cqlalchemy/blob/master/flask_cqlalchemy/__init__.py#L48).
But we also had to use the `cloud` key to pass in Astra credentials (via `setup_kwargs` nearby the link above).
This exploded on us in cqlengine.connection#setup() where the hosts passed into Cluster() made that constructor blow up because:
`ValueError: contact_points, endpoint_factory, ssl_context, and ssl_options cannot be specified with a cloud configuration`

We're not sure this is the right place to patch, but it helped us at least. We figured coming out with a patch directly, instead of an issue, might save some time.
@aboudreault
Copy link
Contributor Author

@rzvoncek feel free to review this PR if you have some free cycles.

@aboudreault aboudreault merged commit 61400e8 into master Oct 26, 2020
@aboudreault aboudreault deleted the python-1265 branch October 26, 2020 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants