Open amoeba opened 7 years ago
So I remembered that I had a x509 cert in /tmp and, after removing it this call worked again. My cert is still valid so this error is really confusing.
Initial guess: there are problems on MacOS with x.509 certs because Apple ships a version of curl that doesn't work with client certs outside of Keychain. See details in issue #24.
Okay, so since that's probably still the case with Sierra, I guess the only thing to do here is to discuss whether the behavior above is what's wanted. I was surprised to get an error because I expected my request to go through even with a certificate issue. What do others think about gracefully continuing with the request instead of error'ing out?
@amoeba One option is to perform platform/OS version checks, which is what the unit tests do externally to the R package code. These kind of checks can be unreliable across package and OS versions, so it's a bit of a hack. Any other ideas?
I think I'd be happy if the behavior in this case was changed to be tolerant of failure so that my session looked like:
getSystemMetadata(cn, "urn:uuid:e73e4199-77b6-4c44-a3be-197c01cb967b")
Warning: An x509 certificate was found at /tmp/x509... but it was not readable so the request was sent as if made by a public user.
instead of forcing me to remove my x509 cert before making the call again.
OK, that sounds great.
This is an odd one: When I run this code I get the following error:
traceback:
Any ideas?
Session info: