kevva / kevva/decompress

Use decompress in lambda function

Open
#88 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
419
Forks
55
PR merge metrics
No merged PRs in 30d

Description

Hello,
Is it possible to use decompress in a lambda function ?
I use this code but I never entered in "then" code
```
var obj = await s3.getObject(params2).promise();
console.log(obj.Body);
decompress(obj.Body, '.').then(files => {
console.log(files)
files.forEach(function(val,index){
s3.putObject({
Bucket:'xxx',
Key: val.path
})
});
})
```
Best regards

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the provided JavaScript snippet in an AWS Lambda function with the S3 object, then inspect whether decompress returns or rejects its promise. The issue does not name a source file or test; done would mean identifying why the then callback is not reached and documenting or fixing that behavior with a reproducible case.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript, node.js
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.