-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Hub not receiving a Promise in ionic app for android #5959
Comments
not sure if this issue is with the auth publishing a bad event or the hub not being able to parse events as promise |
the issue is really with the stream-collector-browser "use strict"; not sure if I need to do a pull request or anything |
@Andyluchina I don't have this folder and I'm on the most recent amplify? |
@oliverandersencox This is really under @AWS-SDK https://www.npmjs.com/package/@aws-sdk/stream-collector-browser |
odd, after i install those into npm, the package is still no there |
@oliverandersencox Here is a list of all the dependencies. This, I believe, is a utilty dependency under @AWS-SDK (if you just install @AWS-SDK you should definitely see it). This is the article I followed. I personally believe that it was because the a lot of versions of android webview does not support Response, thus not working, and what I did is to use a alternative way to read the stream as mentioend in the previous comments. |
I am working on an ionic app that uses amplify and cognito to do federated sigin.
sign in code as follows:
and then it opens up the broswer and goes back, and then I use deeplinking to open my app again where I do
This recreates the request, and I have a hub listening which is
However the hub always gets soemthing like this
event type: sigin_failure
data:
TypeError: the given value is not a Promise
at Object.push../node_modules/@aws-sdk/stream-collector-browser/build/index.js.exports.streamCollector (http://localhost/vendor.js:232048:10)
at collectBody (http://localhost/vendor.js:117186:21)
at collectBodyString (http://localhost/vendor.js:117190:12)
at parseBody (http://localhost/vendor.js:117205:12)
at http://localhost/vendor.js:114513:42
at step (http://localhost/polyfills.js:3223:23)
at Object.next (http://localhost/polyfills.js:3204:53)
at http://localhost/polyfills.js:3197:71
at new ZoneAwarePromise (http://localhost/polyfills.js:4261:29)
at __awaiter (http://localhost/polyfills.js:3193:12)
The ionic app works fine in the web browser but fails in android......
not sure what to do here. Can someone please offer some insights on this issue?
The text was updated successfully, but these errors were encountered: