You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Figaro for storing keys in application.yml I get the following error message when running rails c or rails s:
/Users/xx/.rvm/gems/ruby-3.1.2/gems/uploadcare-ruby-4.2.0/lib/uploadcare.rb:48:in `fetch': key not found: "UPLOADCARE_PUBLIC_KEY" (KeyError)
from /Users/xx/.rvm/gems/ruby-3.1.2/gems/uploadcare-ruby-4.2.0/lib/uploadcare.rb:48:in `<module:Uploadcare>'
@georgesve Yes, indeed, ENV keys were fetched in the gem before Figaro initialized them.
Fixed in the new version 4.3.1, you can find a sample application with Figjam here. I used Figjam as a new version of Figaro, as it's described in this comment
Please, try it and let me know if you still experience the issue.
key not found: "UPLOADCARE_PUBLIC_KEY"
When using Figaro for storing keys in
application.yml
I get the following error message when runningrails c
orrails s
:It works when I manually import the keys like so
But I get the following warning + I have to manually export keys on every new terminal I work on:
uploadcare.rb
Expected behavior
I should be able to set the variables in application.yml
Code / screenshots
Environment
gemfile.lock
ruby-3.1.2
rails, 6.1.6
The text was updated successfully, but these errors were encountered: