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

Running yarn start:ios throws stream.arrayBuffer is not a function error #223

Closed
trivikr opened this issue Dec 31, 2024 · 5 comments
Closed

Comments

@trivikr
Copy link
Contributor

trivikr commented Dec 31, 2024

Describe the bug

Running yarn start:ios throws stream.arrayBuffer is not a function error

Steps to reproduce

Follow instructions for running SDK call in iOS

Observed behavior

SDK call throws stream.arrayBuffer is not a function error

Screenshot screenshot-ios-fail

Expected behavior

SDK call to be successful

Screenshot screenshot-ios

Additional context

Likely introduced in lockfile update 1218870

@trivikr
Copy link
Contributor Author

trivikr commented Jan 2, 2025

Error from console for reference

 LOG  Running "reactnative" with {"rootTag":1,"initialProps":{"concurrentRoot":false}}
 ERROR  {"$metadata": {"attempts": 1, "totalRetryDelay": 0}, "message": "stream.arrayBuffer is not a function (it is undefined)
  Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.", "name": "TypeError", "stack": "TypeError: stream.arrayBuffer is not a function (it is undefined)
  Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.
    at ?anon_0_ (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.reactnative:147810:55)
    at next (native)
    at asyncGeneratorStep (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.reactnative:5593:19)

@trivikr
Copy link
Contributor Author

trivikr commented Jan 2, 2025

The issue seems to be introduced in https://github.com/aws/aws-sdk-js-v3/releases/tag/v3.686.0

@trivikr
Copy link
Contributor Author

trivikr commented Jan 2, 2025

Possibly related to aws/aws-sdk-js-v3#6733

@trivikr
Copy link
Contributor Author

trivikr commented Jan 2, 2025

Probably introduced by smithy-lang/smithy-typescript#1179 which was released in @smithy/[email protected]

@trivikr
Copy link
Contributor Author

trivikr commented Jan 3, 2025

Fixed by lockfile update in #227

@trivikr trivikr closed this as completed Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant