LoginSignup
1
0

More than 5 years have passed since last update.

railsチュートリアル 画像投稿しようとするとエラー

Posted at

・問題
 ログインして画像を投稿しようとするとエラーが起きる。
 We're sorry, but something went wrong.
If you are the application owner check the logs for more information.

・解決策
heroku logs でログを見るとAccess Deniedが原因みたい。そして :status => 403
403エラーみたい。403エラーとは?
403エラー Forbiddenは、サーバーからのアクセス拒否を意味します。

AWSのIAMのポリシーを AmazonS3FullAccessのみアタッチするようにして
heroku run rails db:migrate する事によって解決しました。

・参考資料
https://qiita.com/ryuchan00/items/8e414562b7122e7ec4fb
https://cloudpack.media/5726

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0