Bug: Daily Achievement Proof does not upload to S3 Bucket - "Error: Region is missing" #140
Labels
Amplify
Relates to AWS Amplify
AWS
Relates to AWS in general
bug
Something isn't working
good first issue
Good for newcomers and newer coders
JavaScript
Can be addressed with JavaScript
up for grabs
This issue is up for grabs - no one is working on it, it could be yours!
Milestone
Description
When a user attempts to submit proof of a daily achievement, they receive an alert that "region is missing" and are unable to upload photo evidence of their proof.
This appears to be related to missing or incorrect settings in the Storage.put() method of the uploadToS3 function.
Steps to Reproduce
Expected behavior:
When the user selects an image file, they should receive a toast notification indicating that the image uploaded successfully. After clicking "submit proof", the achievement should then be visible under "Finished Achievements" and clicking on "Press to See Proof" should allow the user to view the proof that they submitted.
Actual behavior
The user receives an error notice that "Region is missing." They are able to click the "Submit Proof" button and their achievement appears under "Finished Achievements", but the achievement indicates that no proof was submitted.
Reproduces how often
100%
Additional Information
You might encounter additional S3- and Amplify-related errors/bugs in the 'Submit proof' workflow after resolving this issue. However, for this PR it will be sufficient just to resolve the "Region missing" error, we can address any other bugs later in separate issues!
The text was updated successfully, but these errors were encountered: