denoland / denoland/deploy_feedback

[Bug]: AWS S3 is not working on Deno Deploy

Open
#868 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
79
Forks
5
PR merge metrics
No merged PRs in 30d

Description

### Problem description

Hi there.

I've run into this issue where downloading S3 objest works perfectly fine locally but breaks in Deno Deploy.

Here's the code, this works perfectly fine locally
```ts
async function getLatestCache() {
const cache = await S3_CLIENT.send(new AWS.GetObjectCommand({
Bucket: BUCKET_NAME,
Key: "cache-latest",
}));

return await cache.Body!.transformToString();
}
```
but throws this error on Deno Deploy
```log
[uncaught application error]: RangeError - The value of "value" is out of range. It must be >= 0 && < 4294967296. Received -646363820
```

### Steps to reproduce

1. Use `@aws-sdk/client-s3` package
2. Try to download anything from S3 in Deno Deploy

### Expected behavior

The file should be downloaded successfully

### Environment

_No response_

### Possible solution

_No response_

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.