{"id":950,"date":"2022-08-30T15:09:53","date_gmt":"2022-08-30T15:09:53","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/what-does-this-mean-for-linkedin-gem-undefined-method-downcase-for-nilnilclass-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:09:53","modified_gmt":"2022-08-30T15:09:53","slug":"what-does-this-mean-for-linkedin-gem-undefined-method-downcase-for-nilnilclass-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/what-does-this-mean-for-linkedin-gem-undefined-method-downcase-for-nilnilclass-collection-of-common-programming-errors\/","title":{"rendered":"what does this mean for linkedin gem? undefined method `downcase&#39; for nil:NilClass-Collection of common programming errors"},"content":{"rendered":"<p>If you paste the complete stacktrace I can give a better solution, but basically, one of the parameters you&#8217;re passing to one of the methods there, is nil.<\/p>\n<p>Most probably on one of these two lines<\/p>\n<pre><code>@client = LinkedIn::Client.new(ENV[\"LINKEDIN_KEY\"], ENV[\"LINKEDIN_SECRET\"]) \n@client.authorize_from_access(@user.atoken, @user.asecret) \n<\/code><\/pre>\n<p>And if it &#8220;just&#8221; started happening, without a code change, I would bet my 2 cents that one of the ENV properties is returning nil<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 23:05:46. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>If you paste the complete stacktrace I can give a better solution, but basically, one of the parameters you&#8217;re passing to one of the methods there, is nil. Most probably on one of these two lines @client = LinkedIn::Client.new(ENV[&#8220;LINKEDIN_KEY&#8221;], ENV[&#8220;LINKEDIN_SECRET&#8221;]) @client.authorize_from_access(@user.atoken, @user.asecret) And if it &#8220;just&#8221; started happening, without a code change, I would bet [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-950","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=950"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/950\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}