Giter Site home page Giter Site logo

localstack-s3-presigned-post-url's Introduction

LocalStack S3 presigned POST error

Steps to reproduce

npm install
npm start

Call to following:

> curl --location --request POST 'http://localhost:3000/dev/document'
{"data":{"url":"http://localhost:4566/example-bucket","fields":{"Key":"example","bucket":"example-bucket","X-Amz-Algorithm":"AWS4-HMAC-SHA256","X-Amz-Credential":"test/20210531/eu-west-1/s3/aws4_request","X-Amz-Date":"20210531T064950Z","Policy":"eyJleHBpcmF0aW9uIjoiMjAyMS0wNS0zMVQwNzo0OTo1MFoiLCJjb25kaXRpb25zIjpbeyJLZXkiOiJleGFtcGxlIn0seyJidWNrZXQiOiJleGFtcGxlLWJ1Y2tldCJ9LHsiWC1BbXotQWxnb3JpdGhtIjoiQVdTNC1ITUFDLVNIQTI1NiJ9LHsiWC1BbXotQ3JlZGVudGlhbCI6InRlc3QvMjAyMTA1MzEvZXUtd2VzdC0xL3MzL2F3czRfcmVxdWVzdCJ9LHsiWC1BbXotRGF0ZSI6IjIwMjEwNTMxVDA2NDk1MFoifV19","X-Amz-Signature":"f067eea94d5d0d5b75092d79f76393d1a8652b555e21bee494239ad5661a255e"}}}
> curl --location --request POST 'http://localhost:4566/example-bucket' \
--form 'Key="example"' \
--form 'bucket="example-bucket"' \
--form 'X-Amz-Algorithm="AWS4-HMAC-SHA256"' \
--form 'X-Amz-Credential="test/20210531/eu-west-1/s3/aws4_request"' \
--form 'X-Amz-Date="20210531T064833Z"' \
--form 'Policy="eyJleHBpcmF0aW9uIjoiMjAyMS0wNS0zMVQwNzo0ODozM1oiLCJjb25kaXRpb25zIjpbeyJLZXkiOiJleGFtcGxlIn0seyJidWNrZXQiOiJleGFtcGxlLWJ1Y2tldCJ9LHsiWC1BbXotQWxnb3JpdGhtIjoiQVdTNC1ITUFDLVNIQTI1NiJ9LHsiWC1BbXotQ3JlZGVudGlhbCI6InRlc3QvMjAyMTA1MzEvZXUtd2VzdC0xL3MzL2F3czRfcmVxdWVzdCJ9LHsiWC1BbXotRGF0ZSI6IjIwMjEwNTMxVDA2NDgzM1oifV19"' \
--form 'X-Amz-Signature="ba93ec05f855d5b8b44176b8cda879af0455d46d8e75b9be5cbb1d5908cfc76f"'
{"status": "running"}

Localstack log

2021-05-31T06:50:47:INFO:localstack.services.edge: Unable to find forwarding rule for host "localhost:4566", path "POST /example-bucket", target header "", auth header "", data "b'--------------------------ab452a5414e2d83e\r\nContent-Disposition: form-data; name="Key"\r\n\r\nex..."

localstack-s3-presigned-post-url's People

Contributors

andres-bayon avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.