-
Notifications
You must be signed in to change notification settings - Fork 39
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
Testing the Connection #20
Comments
"Easier to ask for forgiveness than permission". :) This actually makes sense, because the only reliable way to test for validity of |
Ok. Follow up question, given an initialized connection object, what is the proper way to test if the connection parameters are valid? |
The pythonic way would be to just go ahead and do an API request, e.g. If each call to SAPI had a very large cost associated with it (e.g. time to success/failure), a "ping"/"verify" endpoint would then be useful. But currently, |
Ok, I'll close this issue then. |
One thing that is a little odd to me is that I can setup a connection like so,
with a bunch of junk data and I only notice that the connection is broken when I try to use it with a call like,
Maybe the
Connection
init function could make a simple test, just to make sure it can talk to the server.The text was updated successfully, but these errors were encountered: