Closed gillespied closed 11 months ago
@gillespied I cannot re-create this unfortunately. I created the following 3 scenarios and the function works as stated:
RapidAuth
class raises the following CannotFindCredentialException: No value passed for RAPID_CLIENT_ID, could not authenticate to rAPId
RapidAuth
raises the same CannotFindCredentialException: No value passed for RAPID_CLIENT_ID, could not authenticate to rAPId
AuthenticationErrorException: Auth not configured, could not connect to instance of rAPId
If you are running a Jupyter Notebook ensure you have correctly loaded in your environment variables and likewise you restart the kernel when these values change.
rapid version 7.0.4, rapid-sdk version 0.1.4
In the current version of the sdk I think there is a big in the code which checks if the credentials can be validated. Below is a reprex which used some bogus details for ID and SECRET but uses the correct URL for our rapid instance.
The output from rapid_authentication.validate_credentials() is returned as None, which according to the documents should mean the connection is okay. However,
list_datasets()
gives the below error:I think I would expect the error to be thrown earlier, perhaps by validate_credentials? Or maybe an exception added for an invalid_client? Current validate_credentials only checks for status=200 for it to pass.