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

undefined method `megabytes #1079

Closed
ImanMousavi opened this issue May 23, 2020 · 0 comments
Closed

undefined method `megabytes #1079

ImanMousavi opened this issue May 23, 2020 · 0 comments

Comments

@ImanMousavi
Copy link

ImanMousavi commented May 23, 2020

{
"level":"ERROR","time":"2020-05-23 18:14:15 +0000",
"message":"**undefined method `megabytes' for** nil:NilClass\n/home/app/app/uploaders/upload_uploader.rb:25:in 
`size_range'\n/home/app/vendor/bundle/ruby/2.6.0/gems/carrierwave-2.0.2/lib/carrierwave/uploader/file_size.rb:31:in 
`check_size!'\n/home/app/vendor/bundle/ruby/2.6.0/gems/carrierwave-
2.0.2/lib/carrierwave/uploader/callbacks.rb:14:in `block in 
with_callbacks'\n/home/app/vendor/bundle/ruby/2.6.0/gems/carrierwave-
2.0.2/lib/carrierwave/uploader/callbacks.rb:14:in 
`each'\n/home/app/vendor/bundle/ruby/2.6.0/gems/carrierwave-
2.0.2/lib/carrierwave/uploader/callbacks.rb:14:in 
`with_callbacks'\n/home/app/vendor/bundle/ruby/2.6.0/gems/carrierwave-
2.0.2/lib/carrierwave/uploader/cache.rb:144:in `cache!'"
}

My ENV is:

storage:
  provider: "local"
  bucketName: "local"
  region: fra1
  endpoint: https://fra1.digitaloceanspaces.com
  accessKey: "changeme"
  secretKey: "changeme"
  signatureVersion: "2"
@ec ec closed this as completed Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants