Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Unhandled Promise Rejection - listeners is not defined #187

Closed
funkysoul opened this issue Nov 17, 2016 · 4 comments
Closed

Unhandled Promise Rejection - listeners is not defined #187

funkysoul opened this issue Nov 17, 2016 · 4 comments

Comments

@funkysoul
Copy link

I'm getting this "Warning" after successfully uploading an Image to Firebase.
I'm using the sample code provided in the example (small modifications nothing fancy, only filename and firebase location logic).

After dismissing this message I also get a further warning only in the console:
"Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'."

I'm not sure if I'm doing anything wrong or forgot a step in-between.. Many thanks for your help

RN: 0.37.0
Lib: 0.10.0

screen shot 2016-11-17 at 09 18 08

@wkh237
Copy link
Owner

wkh237 commented Nov 17, 2016

@funkysoul , thanks for reporting the issue, I think the problem is here :

https://github.com/wkh237/react-native-fetch-blob/blob/master/src/polyfill/EventTarget.js#L74

the missing this before listeners[i]

@wkh237 wkh237 added the bug label Nov 17, 2016
@funkysoul
Copy link
Author

@wkh237 indeed! warning gone.

@Pianist038801
Copy link

@wkh237 I am having the same issue. It makes me unable to do debug. What can I do right now?

@whysetiawan
Copy link

@wkh237 i am having the same issue. My library is 0.10.8 version. What should i do now?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants