fictionco / fiction

(Join Waiting List) Personal Marketing Platform. A powerful platform for your online identity.
https://www.fiction.com
1.42k stars 109 forks source link

adding image to page on dashboard not working #263

Closed acalvino4 closed 2 years ago

acalvino4 commented 3 years ago

Reason for this issue I set up my amazon s3 and an IAM user exactly as outlined here, and configured my .env file accordingly, but when I upload an image to a new page from the dashboard, it fails, with this error in my server:

ERROR  Access Denied                                                                                                             22:04:49

  at Request.extractError (node_modules/aws-sdk/lib/services/s3.js:700:35)
  at Request.callListeners (node_modules/aws-sdk/lib/sequential_executor.js:106:20)
  at Request.emit (node_modules/aws-sdk/lib/sequential_executor.js:78:10)
  at Request.emit (node_modules/aws-sdk/lib/request.js:688:14)
  at Request.transition (node_modules/aws-sdk/lib/request.js:22:10)
  at AcceptorStateMachine.runTo (node_modules/aws-sdk/lib/state_machine.js:14:12)
  at node_modules/aws-sdk/lib/state_machine.js:26:10
  at Request.<anonymous> (node_modules/aws-sdk/lib/request.js:38:9)
  at Request.<anonymous> (node_modules/aws-sdk/lib/request.js:690:12)
  at Request.callListeners (node_modules/aws-sdk/lib/sequential_executor.js:116:18)
  at Request.emit (node_modules/aws-sdk/lib/sequential_executor.js:78:10)
  at Request.emit (node_modules/aws-sdk/lib/request.js:688:14)
  at Request.transition (node_modules/aws-sdk/lib/request.js:22:10)
  at AcceptorStateMachine.runTo (node_modules/aws-sdk/lib/state_machine.js:14:12)
  at node_modules/aws-sdk/lib/state_machine.js:26:10
  at Request.<anonymous> (node_modules/aws-sdk/lib/request.js:38:9)
  at Request.<anonymous> (node_modules/aws-sdk/lib/request.js:690:12)
  at Request.callListeners (node_modules/aws-sdk/lib/sequential_executor.js:116:18)
  at callNextListener (node_modules/aws-sdk/lib/sequential_executor.js:96:12)
  at IncomingMessage.onEnd (node_modules/aws-sdk/lib/event_listeners.js:313:13)
  at IncomingMessage.emit (events.js:326:22)
  at IncomingMessage.EventEmitter.emit (domain.js:486:12)

Looks like an s3 permission error, which leads me to believe that instructions for setting that up in the docs are incomplete.

Steps to Reproduce