Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

googleauth-1.11.0/lib/googleauth/service_account.rb:87:in unescape': undefined method gsub' for nil:NilClass #482

Open
markhorrocks opened this issue May 8, 2024 · 1 comment
Assignees

Comments

@markhorrocks
Copy link

markhorrocks commented May 8, 2024

  • OS: ubuntu 20.04
  • Ruby version: 2.7.0
  • Gem name and version: googleauth 1.11.0

Steps to reproduce

  1. Attempt to use make_creds with json_key

#! /usr/bin/ruby

require 'googleauth'

SERVICE_ACCOUNT_PRIVATE_KEY = "-----BEGIN PRIVATE KEY-----MIIE1234ABCD-----END PRIVATE KEY-----"

begin
credentials = Google::Auth::ServiceAccountCredentials.make_creds(
scope: "https://analyticsreporting.googleapis.com/v4/reports:batchGet",
json_key: SERVICE_ACCOUNT_PRIVATE_KEY
)
rescue => error
puts "Error: #{error.message}"
end

@palladius
Copy link

I got the same issue this morning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants