Open pscadiz opened 5 years ago
Have a self-hosted installation of this cartodb and am trying to integrate Google Drive with it. Have updated app_config.yml for oauth.gdrive.
Whenever trying to connect Google Drive through datasets I am getting the following error:
We are sorry that you can’t connect to your Google Drive account. Be sure you have any pop-up blockers deactivated for this website.
Logs in cartodb.log show this as well:
Started GET "/user/cartodb/api/v1/imports/service/gdrive/auth_url" for 124.6.149.238 at 2019-05-22 09:15:53 +0000 Processing by Carto::Api::ImportsController#get_service_auth_url as JSON Parameters: {"user_domain"=>"cartodb", "id"=>"gdrive"} Sequel::Postgres::Database (0.5ms) SELECT * FROM "users" WHERE ("username" = 'cartodb') LIMIT 1 Sequel::Postgres::Database (0.3ms) SELECT * FROM "organizations" WHERE ("organizations"."id" = '') LIMIT 1 error: #<ArgumentError: header field value cannot include CR/LF> /usr/lib/ruby/2.4.0/net/http/header.rb:23:in `block in initialize_http_header' /usr/lib/ruby/2.4.0/net/http/header.rb:16:in `each' /usr/lib/ruby/2.4.0/net/http/header.rb:16:in `initialize_http_header' /usr/lib/ruby/2.4.0/net/http/generic_request.rb:44:in `initialize' /var/lib/gems/2.4.0/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:60:in `new' /var/lib/gems/2.4.0/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:60:in `create_request' /var/lib/gems/2.4.0/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:80:in `perform_request' /var/lib/gems/2.4.0/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:39:in `call' /var/lib/gems/2.4.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in `call' /var/lib/gems/2.4.0/gems/google-api-client-0.7.0/lib/google/api_client/request.rb:164:in `send' /var/lib/gems/2.4.0/gems/google-api-client-0.7.0/lib/google/api_client.rb:598:in `block in execute!' /var/lib/gems/2.4.0/gems/retriable-1.4.1/lib/retriable/retry.rb:27:in `perform' /var/lib/gems/2.4.0/gems/retriable-1.4.1/lib/retriable.rb:15:in `retriable' /var/lib/gems/2.4.0/gems/google-api-client-0.7.0/lib/google/api_client.rb:595:in `execute!' /var/lib/gems/2.4.0/gems/google-api-client-0.7.0/lib/google/api_client.rb:330:in `discovery_document' /var/lib/gems/2.4.0/gems/google-api-client-0.7.0/lib/google/api_client.rb:375:in `discovered_api' /opt/cartodb/apps/cartodb/services/datasources/lib/datasources/url/gdrive.rb:51:in `initialize' /opt/cartodb/apps/cartodb/services/datasources/lib/datasources/url/gdrive.rb:65:in `new' /opt/cartodb/apps/cartodb/services/datasources/lib/datasources/url/gdrive.rb:65:in `get_new' /opt/cartodb/apps/cartodb/services/datasources/lib/datasources/datasources_factory.rb:44:in `get_datasource' /opt/cartodb/apps/cartodb/app/services/carto/data_imports_service.rb:116:in `get_datasource' /opt/cartodb/apps/cartodb/app/services/carto/data_imports_service.rb:79:in `get_service_auth_url' /opt/cartodb/apps/cartodb/app/controllers/carto/api/imports_controller.rb:53:in `get_service_auth_url' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/abstract_controller/base.rb:198:in `process_action' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_controller/metal/rendering.rb:10:in `process_action' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:117:in `call' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:498:in `block (2 levels) in around' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting' /opt/cartodb/apps/cartodb/app/controllers/application_controller.rb:150:in `wrap_in_profiler' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:432:in `block in make_lambda' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:312:in `block in halting' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:497:in `block in around' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:505:in `call' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:92:in `__run_callbacks__' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:81:in `run_callbacks' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/abstract_controller/callbacks.rb:19:in `process_action' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_controller/metal/rescue.rb:29:in `process_action' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/notifications.rb:164:in `block in instrument' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/notifications.rb:164:in `instrument' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /var/lib/gems/2.4.0/gems/activerecord-4.2.10/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /var/lib/gems/2.4.0/gems/sequel-rails-0.9.15/lib/sequel_rails/railties/controller_runtime.rb:18:in `process_action' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/abstract_controller/base.rb:137:in `process' /var/lib/gems/2.4.0/gems/actionview-4.2.10/lib/action_view/rendering.rb:30:in `process' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_controller/metal.rb:196:in `dispatch' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_controller/metal.rb:237:in `block in action' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/routing/route_set.rb:74:in `dispatch' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/routing/route_set.rb:43:in `serve' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/journey/router.rb:43:in `block in serve' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/journey/router.rb:30:in `each' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/journey/router.rb:30:in `serve' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/routing/route_set.rb:817:in `call' /var/lib/gems/2.4.0/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call' /var/lib/gems/2.4.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch' /var/lib/gems/2.4.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call' /var/lib/gems/2.4.0/gems/rack-1.6.10/lib/rack/etag.rb:24:in `call' /var/lib/gems/2.4.0/gems/rack-1.6.10/lib/rack/conditionalget.rb:25:in `call' /var/lib/gems/2.4.0/gems/rack-1.6.10/lib/rack/head.rb:13:in `call' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/flash.rb:260:in `call' /var/lib/gems/2.4.0/gems/rack-1.6.10/lib/rack/session/abstract/id.rb:225:in `context' /var/lib/gems/2.4.0/gems/rack-1.6.10/lib/rack/session/abstract/id.rb:220:in `call' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/cookies.rb:560:in `call' /var/lib/gems/2.4.0/gems/activerecord-4.2.10/lib/active_record/query_cache.rb:36:in `call' /var/lib/gems/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:88:in `__run_callbacks__' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_call_callbacks' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:81:in `run_callbacks' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/reloader.rb:73:in `call' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' /var/lib/gems/2.4.0/gems/rollbar-2.11.1/lib/rollbar/middleware/rails/rollbar.rb:24:in `block in call' /var/lib/gems/2.4.0/gems/rollbar-2.11.1/lib/rollbar.rb:728:in `scoped' /var/lib/gems/2.4.0/gems/rollbar-2.11.1/lib/rollbar/middleware/rails/rollbar.rb:22:in `call' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /var/lib/gems/2.4.0/gems/rollbar-2.11.1/lib/rollbar/middleware/rails/show_exceptions.rb:22:in `call_with_rollbar' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/rack/logger.rb:38:in `call_app' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/rack/logger.rb:20:in `block in call' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/tagged_logging.rb:68:in `block in tagged' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/tagged_logging.rb:26:in `tagged' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/tagged_logging.rb:68:in `tagged' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/rack/logger.rb:20:in `call' /var/lib/gems/2.4.0/gems/request_store-1.1.0/lib/request_store/middleware.rb:8:in `call' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/request_id.rb:21:in `call' /var/lib/gems/2.4.0/gems/rack-1.6.10/lib/rack/methodoverride.rb:22:in `call' /var/lib/gems/2.4.0/gems/rack-1.6.10/lib/rack/runtime.rb:18:in `call' /var/lib/gems/2.4.0/gems/activesupport-4.2.10/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /var/lib/gems/2.4.0/gems/rack-1.6.10/lib/rack/lock.rb:17:in `call' /var/lib/gems/2.4.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/static.rb:120:in `call' /var/lib/gems/2.4.0/gems/rack-1.6.10/lib/rack/deflater.rb:35:in `call' /var/lib/gems/2.4.0/gems/rack-1.6.10/lib/rack/sendfile.rb:113:in `call' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/engine.rb:518:in `call' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/application.rb:165:in `call' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/railtie.rb:194:in `public_send' /var/lib/gems/2.4.0/gems/railties-4.2.10/lib/rails/railtie.rb:194:in `method_missing' /var/lib/gems/2.4.0/gems/thin-1.7.2/lib/thin/connection.rb:86:in `block in pre_process' /var/lib/gems/2.4.0/gems/thin-1.7.2/lib/thin/connection.rb:84:in `catch' /var/lib/gems/2.4.0/gems/thin-1.7.2/lib/thin/connection.rb:84:in `pre_process' /var/lib/gems/2.4.0/gems/thin-1.7.2/lib/thin/connection.rb:50:in `block in process' /var/lib/gems/2.4.0/gems/eventmachine-1.0.4/lib/eventmachine.rb:1046:in `block in spawn_threadpool'
Any ideas?
Have a self-hosted installation of this cartodb and am trying to integrate Google Drive with it. Have updated app_config.yml for oauth.gdrive.
Whenever trying to connect Google Drive through datasets I am getting the following error:
Logs in cartodb.log show this as well:
Any ideas?