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

Bug: Daily Achievement Proof does not upload to S3 Bucket - "Error: Region is missing" #140

Closed
jayeclark opened this issue Mar 18, 2022 · 1 comment · Fixed by #194 or #212
Closed
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!

Comments

@jayeclark
Copy link
Collaborator

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.

Screen Shot 2022-03-18 at 3 49 50 PM

This appears to be related to missing or incorrect settings in the Storage.put() method of the uploadToS3 function.

Steps to Reproduce

  1. Navigate to or create an active sprint
  2. Click the "submit work" button on one of the Daily Achievements
  3. Select an image file to upload as 'proof' of completing the achievement
  4. Dismiss any error notifications and click "Submit Proof"

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.
Screen Shot 2022-03-18 at 4 44 22 PM

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.
Screen Shot 2022-03-18 at 4 34 51 PM

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!

@jayeclark jayeclark added bug Something isn't working good first issue Good for newcomers and newer coders Amplify Relates to AWS Amplify AWS Relates to AWS in general 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! labels Mar 18, 2022
@mikhael28
Copy link
Owner

@jayeclark pinning this issue - great example of how to write a world-class ticket!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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!
Projects
None yet
2 participants