Google Cloud Talent解决方案异常:Google :: Cloud :: PermissionDeniedError

时间:2019-02-26 16:46:07

标签: ruby-on-rails ruby api google-cloud-platform

使用Google Cloud Talent解决方案(又名Google Cloud Job Discovery),即使所有Google API凭据均已安装并启用,我仍获得以下堆栈跟踪。错误消息似乎是通用的(“权限被拒绝”),不确定什么可能是错误的。任何见解都非常感激。

================================================ =====================

错误消息 Google :: Cloud :: PermissionDeniedError:7:用户无权执行此操作。

示例堆栈跟踪(隐藏Rails) …cloud-pubsub-0.31.0 / lib / google / cloud / pubsub / service.rb:459:在rescue in execute' …cloud-pubsub-0.31.0/lib/google/cloud/pubsub/ service.rb: 455:in中执行' …cloud-pubsub-0.31.0 / lib / google / cloud / pubsub / service.rb:150:在publish' …e-cloud-pubsub-0.31.0/lib/google/cloud/pubsub/ topic.rb: 573:in publish_batch_messages'中 …e-cloud-pubsub-0.31.0 / lib / google / cloud / pubsub / topic.rb:314:在publish' …emetry_job_google/lib/google_jobs/ google_jobs_event.rb: 22:in publish_event'中 …metry_careersites / app / mixins / job_search_event_mixin.rb:88:in record_google_search_impressions' …metry_careersites/app/mixins/ job_search_event_mixin.rb: 17:in event_job_search_impressions' …网站/应用/控制器/ public_site / jobs_controller.rb:59:在block (2 levels) in search' …k-5.2.1.1/lib/action_controller/metal/ mime_responds.rb: 203:in中回复 …网站/应用/控制器/ public_site / jobs_controller.rb:53:在search' …1/lib/action_controller/metal/ basic_implicit_render.rb: 6:in send_action'中 …ems / actionpack-5.2.1.1 / lib / abstract_controller / base.rb:194:在process_action' …npack-5.2.1.1/lib/action_controller/metal/ rendering.rb: 30:in process_action'中 …ctionpack-5.2.1.1 / lib / abstract_controller / callbacks.rb:42:在block in process_action' …/activesupport-5.2.1.1/lib/active_support/ callbacks.rb: 109:in中阻止run_callbacks' …try_careersites / app / controllers / eventing_controller.rb:23:在block in append_tracking_info_to_rails_log' …vesupport-5.2.1.1/lib/active_support/ tagged_logging.rb: 71:in块中被标记为“ …vesupport-5.2.1.1 / lib / active_support / agged_logging.rb:28:在tagged' …vesupport-5.2.1.1/lib/active_support/ tagged_logging.rb: 71:in标记中” …try_careersites / app / controllers / eventing_controller.rb:22:在run_callbacks的append_tracking_info_to_rails_log' …/activesupport-5.2.1.1/lib/active_support/ callbacks.rb: 118:in块中 …/ activesupport-5.2.1.1 / lib / active_support / callbacks.rb:136:在run_callbacks' …ctionpack-5.2.1.1/lib/abstract_controller/ callbacks.rb: 41:in process_action'中 …tionpack-5.2.1.1 / lib / action_controller / metal / rescue.rb:22:在process_action' <truncated 60 additional frames> …2.5.0/gems/rack-timeout-0.5.1/lib/rack/timeout/ core.rb: 123:in中阻止通话' …rack-timeout-0.5.1 / lib / rack / timeout / support / timeout.rb:19:在timeout' …2.5.0/gems/rack-timeout-0.5.1/lib/rack/timeout/ core.rb: 122:in通话中 …k-5.2.1.1 / lib / action_dispatch /中间件/ request_id.rb:27:在call' …ruby/2.5.0/gems/rack-2.0.6/lib/rack/ method_override.rb: 22:in通话中' …/ vendor / ruby​​ / 2.5.0 / gems / rack-2.0.6 / lib / rack / runtime.rb:22:在call' …ctive_support/cache/strategy/ local_cache_middleware.rb: 29:in通话中 …ack-5.2.1.1 / lib / action_dispatch / middleware / executor.rb:14:在call' …npack-5.2.1.1/lib/action_dispatch/middleware/ static.rb: 127:in通话中 …供应商/ruby/2.5.0/gems/rack-2.0.6/lib/rack/ sendfile.rb:111:在call' …r/ruby/2.5.0/gems/railties-5.2.1.1/lib/rails/ engine.rb: 524:in通话中 …/ ruby​​ / 2.5.0 / gems / puma-3.12.0 / lib / puma / configuration.rb:225:在call' …/vendor/ruby/2.5.0/gems/puma-3.12.0/lib/puma/ server.rb: 658:in handle_request'中 …/供应商/红宝石/2.5.0/gems/puma-3.12.0/lib/puma/ server.rb:472:在process_client' …/vendor/ruby/2.5.0/gems/puma-3.12.0/lib/puma/ server.rb: 332:in中处于运行状态” …或/ruby/2.5.0/gems/puma-3.12.0/lib/puma/ thread_pool.rb:133:在`spawn_thread中的块

1 个答案:

答案 0 :(得分:0)

您需要将服务帐户显式连接到 Talent Solution api,然后使用该服务帐户密钥进行身份验证。有关详细信息,请参阅 here

Service account connection