Questions tagged [knox-amazon-s3-client]

Use this tag for questions related to the js library knox: a node.js plugin for Amazon S3

This open source project (hosted on github) is an client for

Main features (as described on the project site) :

  • Familiar API (client.get(), client.put(), etc.)
  • Very Node-like low-level request capabilities via http.Client
  • Higher-level API with client.putStream(), client.getFile(), etc.
  • Copying and multi-file delete support
  • Streaming file upload and direct stream-piping support

Knox can be installed with npm install knox

88 questions
1
vote
1 answer

Send recorded audio to S3

I am using RecorderJs to record audio. When done; I want to save it to amazon S3 (I am using knox library) via server (because I don't want to share the key). recorder.exportWAV(function(blob) { // sending it to server }); On the server side,…
1
vote
1 answer

npm knox signed url http

I am using the nodejs npm package 'knox' to connect to amazon s3. And I would like to create a download url. At the moment I use: var expires = new Date(); expires.setMinutes(expires.getMinutes() + 30); var url = client.signedUrl('/test/obj.json',…
Nils Ziehn
  • 4,118
  • 6
  • 26
  • 40
1
vote
2 answers

How to upload a one terabyte file to Amazon S3 via webapp?

I would like to know how to upload large files to amazon S3 (> 1 terabyte) Ideally the web-app upload mechanism should have: Real time progress bar Upload Speed stats Pause / Resume Support Upload directly from computer to amazon S3 Memory…
1
vote
3 answers

Upload S3 knox node js (signature doesnt match)

I've been trying for many days now to upload a file (message.txt) to aws s3 using knox and node js. I keep having a signature doesnt match error. my code in node js (upload was not working so i'm just trying to do a get) : var client =…
Pat-rice
  • 422
  • 1
  • 3
  • 16
1
vote
2 answers

Node.js Amazon S3 - Download fails with SignatureDoesNotMatch error

Here's the code I'm using to download a file var S3_KEY = 'xxxxxx'; var S3_SECRET = 'xxxxxx'; var S3_BUCKET = 'xxxxxx'; var s3Client = require('knox').createClient({ "key": S3_KEY, "secret": S3_SECRET, "bucket": S3_BUCKET }); // Pull…
ZECTBynmo
  • 3,197
  • 3
  • 25
  • 42
0
votes
1 answer

Why append rather than write when using knox / node.js to grab file from Amazon s3

I'm experimenting with the knox module for node.js as a way of managing some small files in an Amazon S3 bucket. Everything works fine stand-alone: I can upload a file, download a file, etc. However, I want to be able to download a file on recurring…
0
votes
1 answer

Nodejs Amazon Upload using Knox crashing at Assertion Error

I'm using the knox amazon uploader as a "proxy" to upload a sliced file from Javascript. But the thing that've noticing is that sometimes ( sadly sometimes so I cannot identify the error exactly) when the response.statusCode isn't 200 the nodeJS…
0
votes
0 answers

AWS S3 Bucket getSignedUrl() giving me error Cannot read properties of undefined (reading 'clone')

const S3 = require('aws-sdk/clients/s3'); const { getSignedUrl } = require("@aws-sdk/s3-request-presigner"); const { S3Client, GetObjectCommand } = require("@aws-sdk/client-s3"); dotenv.config(); const bucketName =…
0
votes
1 answer

Java - Skip line of mocked s3Client class from a junit

I need to be able to skip over the s3Client line below when myMethod is executed from a junit. MyClass is NOT mocked, nor is myMethod: MyClass { myMethod(String bucketName, String path) { // do stuff // skip below when mocked…
Timothy Clotworthy
  • 1,960
  • 2
  • 19
  • 42
0
votes
0 answers

I have saved my secret key by encrypting it to hash using salt. How do i use this hash password to to create amazons3client?

I have saved my secret key by encrypting it to hash using salt. How do i use this hash password to to create AmazonS3Client ? Thank you in advance
testguest
  • 43
  • 4
0
votes
1 answer

'Amazon.Runtime.Internal.FallbackInternalConfigurationFactory' threw an exception

s3Client = new AmazonS3Client(new BasicAWSCredentials(apcong.Value.AWSACCESSKEY, apcong.Value.AWSSECRETKEY), RegionEndpoint.USEast1); not working with .net core 3.1 I have tried to create AmazonS3Client but it is always null and throwing…
Janki
  • 11
  • 4
0
votes
1 answer

Unable to get accessKey and SecretKey from Hadoop conf

I have code as below - import java.io.InputStream import java.net.URI import java.util import com.amazonaws.auth.AWSCredentialsProviderChain import com.amazonaws.{ClientConfiguration, Protocol} import com.amazonaws.services.s3.AmazonS3Client import…
0
votes
1 answer

Error on CompareFacesRequest as part of AWS's Rekognize on Android

I apologize if my question is not worded properly, I don't post here very often. I am having difficulty with launching my request to match 2 faces in 2 different images using Amazon Web Services on my Android application. My code is provided below: …
0
votes
1 answer

Getting a 400 error whenever I try to Upload an image to an Amazon Web Services S3 bucket

Hi, Please bear with me as I'm a newbie on this. I'm trying to upload image files to an Amazon Web Services S3 bucket using NodeJS Knox client but I keep getting a 400 error every time I try. I think it could be an authorization issue as I can't…
0
votes
0 answers

Invalid Command $n(0) in Tcl NS2

for {set i 0} {$i < $num_nodes} {incr i} { set a($i) [new Agent/MessagePassing/Flooding] $n($i) attach $a($i) $MESSAGE_PORT $a($i) set messages_seen {} } set Consumer n(0) set Producer n(5) $ns attach $a(1) $consumer $ns attach $n(5)…