diff --git a/client/README.md b/client/README.md index 9b26f0e..3e6eb83 100644 --- a/client/README.md +++ b/client/README.md @@ -41,3 +41,14 @@ CREATE EXTENSION cdb_dataservices_client; ``` The extension creation in the user's db requires **superuser** privileges. + +## User database configuration + +After installing the client extension in a database, you will need to set up your configuration to be able to connect with the server. + +``` +-- Point to the dataservices server DB (you can use a specific database for the server or your same user's): +SELECT CDB_Conf_SetConf('geocoder_server_config', '{ "connection_str": "host=localhost port=5432 dbname= user=postgres"}'); + +SELECT CDB_Conf_SetConf('user_config', '{"is_organization": false, "entity_name": ""}'); +``` diff --git a/server/lib/python/cartodb_services/cartodb_services/mapzen/qps.py b/server/lib/python/cartodb_services/cartodb_services/mapzen/qps.py index fb32aa9..21c45a4 100644 --- a/server/lib/python/cartodb_services/cartodb_services/mapzen/qps.py +++ b/server/lib/python/cartodb_services/cartodb_services/mapzen/qps.py @@ -26,7 +26,7 @@ class QPSService: try: return fn(*args, **kwargs) except Exception as e: - if hasattr(e, 'response') and (e.response.status_code == 429 or e.response.status_code == 504): + if hasattr(e, 'response') and (e.response.status_code == 429): self.retry(start_time, attempt_number) else: raise e