-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[BUG] S3Client Failed to Create Bucket in Sample Codes #1859
Comments
I've assigned this issue to our JavaScript writer to review. |
Great, thanks for your help! |
I was able to reproduce, though my setup was on an Expo-managed blank project which I merged with https://github.com/awsdocs/aws-doc-sdk-examples/blob/master/javascriptv3/example_code/reactnative/App.js. I think I see the issue.
Here is
Which for some reason resolves to
This is because react-native/Blob/URL.js exports a class URL (line 115: I think what we actually want is https://developer.mozilla.org/en-US/docs/Web/API/URL |
Just wanted to check back in. Is it possible that this has been broken since aws/aws-sdk-js-v3@99be092? I went through the history for React Native's Blob URL (https://github.com/facebook/react-native/commits/master/Libraries/Blob/URL.js) and it seems many fields have simply never been implemented. This commit sounds like it was meant to call WHATWG URL but I see it's resolving to React Native (tbh I don't fully understand the commit message, and the diff is kind of huge). Others ran into similar issues calling React Native's Blob URL by accident: facebook/react-native#16434 (comment) Suggested workaround appears to be calling https://github.com/charpeni/react-native-url-polyfill. I'm not sure yet if that's the better solution or to explicitly just call WHATWG URL. |
Hi Nadesri, Many thanks to your observation on this issue. You are correct and it's the dependencies of |
@brmur Hmmm...that's a bit wired. Seems the not implemented error is pointing to your createBucket function. Did you do
at top of your |
issue resolved. merged in #1864 |
What is the issue?
Hi, I am following the sample code S3 Create Bucket Command for JS V3: javascriptv3/example_code/s3/src/s3_createbucket.js and I did the UI in react native based on this tutorial: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/getting-started-react-native.html
But after typing the new bucket name in the UI, I got an error to create the bucket.
How can someone reproduce this issue (if applicable)?
Code Snippets:
UI for creating buckets
Error Detail
Environment details to help us try to reproduce the issue (if applicable)
The text was updated successfully, but these errors were encountered: