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

Explicitly set responseType to blob rather than using new Blob #5260

Merged

Conversation

ericclemmons
Copy link
Contributor

@ericclemmons ericclemmons commented Apr 1, 2020

publish:master was blocked by a failing integration test:

https://app.circleci.com/pipelines/github/aws-amplify/amplify-js/4324/workflows/69414fdd-8207-4249-a112-2c782191e1ba/jobs/12230

The regression was intermittent, but ultimately was due to iOS not getting a correct blob when created via new Blob([response.data]).

By using Axios' built-in responseType: "blob", this bypasses the Blob bug specific to iOS, returning null for result:

Screen Shot 2020-03-31 at 6 44 06 PM


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@Ashish-Nanda Ashish-Nanda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@ashika01 ashika01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@ericclemmons ericclemmons marked this pull request as ready for review April 1, 2020 19:36
Copy link
Contributor

@sammartinez sammartinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🌮

@ericclemmons ericclemmons added bug Something isn't working React Native React Native related issue Storage Related to Storage components/category labels Apr 1, 2020
Copy link
Contributor

@manueliglesias manueliglesias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 👀

@codecov
Copy link

codecov bot commented Apr 1, 2020

Codecov Report

Merging #5260 into master will not change coverage by %.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5260   +/-   ##
=======================================
  Coverage   72.71%   72.71%           
=======================================
  Files         195      195           
  Lines       11464    11464           
  Branches     2157     2157           
=======================================
  Hits         8336     8336           
  Misses       2978     2978           
  Partials      150      150           
Impacted Files Coverage Δ
...ckages/storage/src/providers/axios-http-handler.ts 27.90% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b1d2e9...a62e7d6. Read the comment docs.

@github-actions
Copy link

This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working React Native React Native related issue Storage Related to Storage components/category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants