-
Notifications
You must be signed in to change notification settings - Fork 594
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
Blob is not defined #1378
Comments
Hi @blakeembrey Have you tried polyfilling |
What about in web workers (I actually have no idea if |
Also happy to submit a PR with the appropriate changes needed. Polyfilling |
Sure I'm happy to review the PR. To your question:
I did a little experiment from my console, and I think they are available. Here's what I did: const response = "self.onmessage=function(e){postMessage('Worker: '+new Blob(['hello world']));}";
let blob;
try {
blob = new Blob([response], {type: 'application/javascript'});
} catch (e) { // Backwards-compatibility
window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder;
blob = new BlobBuilder();
blob.append(response);
blob = blob.getBlob();
}
var worker = new Worker(URL.createObjectURL(blob));
worker.onmessage = function(e) {
alert('Response: ' + e.data);
};
worker.postMessage('Test'); |
@blakeembrey Can you verify if this is fixed in release v1.0.0-gamma.5 (i.e. in |
I'm not currently using the DynamoDB client, but confirmed it works with KMS and SES now so I bet DynamoDB also works now. Thanks! |
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. |
Describe the bug
When using the AWS SDK with Cloudflare Workers I get a
Blob is not defined
error.SDK version number
1.0.0-gamma.4
Is the issue in the browser/Node.js/ReactNative? Web worker pseudo environment
Details of the browser/Node.js/ReactNative version N/A
To Reproduce (observed behavior) Same as #1165 (comment).
Expected behavior It should not fail.
Additional context
It should be possible to remove
Blob
usage from the main path since it appears to be there primarily for older browser support? #1165 (comment).The text was updated successfully, but these errors were encountered: