memoetapp / memoet

A self-hosted spaced repetition software
GNU Affero General Public License v3.0
94 stars 12 forks source link

Bug: s3 Image upload error #56

Open Daniel-CS-Team opened 2 years ago

Daniel-CS-Team commented 2 years ago

I am sorry, to report the second bug just in one day.

Anyways, when trying to Upload an image for a note, this error is returned:

{"error":{"errors":["Required key: :secret_access_key is nil in config!"],"message":"Couldn't upload file","status":400}}

Of course, I double checked the AWS_SECRET_ACCESS_KEY, but it is configured correctly.

I hope you can resolve this easily. Please stay positive and continue your great work here.

manhtai commented 2 years ago

Are you setting the env on ECS task definition? I’m trying on memoet.fly.io and the upload still works. No idea about where it could go wrong except the env is not there.