-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ReferenceError: Can't find variable: ArrayBuffer #871
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
Comments
@neeravmehta |
Our environment is a javascript/HTML5 mobile app, it uses an older version of webkit compiler. |
I can add that check for ArrayBuffer to the SDK. I'm not sure that will be enough to fully resolve the issue you're seeing though. Have you tried adding that check and verified it works for your use case? Just for reference, here's a list of the currently supported browsers: |
Thanks ! That would be great! |
@neeravmehta |
@chrisradek Here is the check that fixed it for me |
What is ArrayBuffer when you hit that line? Just checking for ArrayBuffer should return a falsey value if it is undefined, which is also what your check is doing. |
Unfortunately I cannot debug our platform, so i cannot tell you the exact value for ArrayBuffer. But from what I understand it does not know what ArrayBuffer is, hence best guesses it to a variable , that is not defined and throws an error when it sees it being used. This thread helped me understand it http://stackoverflow.com/questions/3390396/how-to-check-for-undefined-in-javascript |
@neeravmehta Is the application running on Appcelerator? |
@neeravmehta it looks like you may be using a version of JavaScriptCore that is bundling an unsupported version of WebKit. As @chrisradek mentioned, the linked patch should address any There have been other issues reported when using using Appcelerator and Appcelerator like environments that use an outdated version of JavaScriptCore. See #784 |
@jeskew While it is'nt Appcelerator in particulr but our platform pretty much does the same thing, and it does use an older version of Webkit. @AdityaManohar Thanks for the update, I have already run into some issues because of this, I am trying to see if I can get this to work as that will reduce our effort significantly. Our other options are to incorporate both iOS and Android sdk for respective environments, or use REST APIs(where we end up redoing a lot of things that aws-sdk does for us) I am not sure if this is the right forum for this but will just put is out there, does AWS firehose have REST APIs that we can access to put records? |
@neeravmehta Your other alternative is to try and use Amazon API Gateway to proxy requests to AWS Kinesis Firehose. This becomes trivially simple if you are using unauthenticated roles to put records to Kinesis Firehose. Let me know if the helps. Here is a comment that I posted on using API Gateway with CloudSearch - the same concepts apply. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
You need to check for existance of ArrayBuffer before using it. this is happening in hash function for the crypto module. Specifically line 4270 in a development build with only firehose, cognito and mobile analytics services. Search for
data.buffer instanceof ArrayBuffer
The text was updated successfully, but these errors were encountered: