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
$ rails server
/Users/guillaume/.rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/uploadcare-ruby-3.3.1/lib/uploadcare.rb:36:in `fetch': key not found: "UPLOADCARE_SECRET_KEY" (KeyError)
Did you mean? "UPLOADCARE_PUBLIC_KEY"
This is not a ENV problem because I wrote my credentials directly on config/initializers/uploadcare.rb and still have the same issue
Uploadcare::Rails.configuredo |config|
# Sets your Uploadcare public key.config.public_key='mypublickey'# ENV.fetch("UPLOADCARE_PUBLIC_KEY", "mypublickey")config.secret_key='mysecretkey'# ENV.fetch("UPLOADCARE_SECRET_KEY", "mysecretkey")
...
I have this error when I try to run
rails server
This is not a ENV problem because I wrote my credentials directly on
config/initializers/uploadcare.rb
and still have the same issueThe only way to fix it right now is to run
export UPLOADCARE_PUBLIC_KEY=demopublickey
but it is not the solutionEnvironment
uploadcare-rails (2.1.0)
uploadcare-ruby (3.3.1)
dotenv-rails (2.7.6)
rails (7.0.2.3)
ruby (3.0.3)
OS X (12.3.1)
The text was updated successfully, but these errors were encountered: