Giter VIP home page Giter VIP logo

Comments (5)

localstack-bot avatar localstack-bot commented on September 25, 2024

Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.

from localstack.

MEPalma avatar MEPalma commented on September 25, 2024

@bilki Thank you for taking the time to compile this report. We recently merged some changes that aim to address this issue. I would be grateful if you could test the new build at your earliest convenience and provide feedback on whether it resolves the problem you encountered. Thank you once again for bringing this issue forward!

from localstack.

gerson24 avatar gerson24 commented on September 25, 2024

Hi @MEPalma,
I've been testing the latest version and it seems the issues with reading from S3 are resolved. However, it looks like there's a similar problem when writing to S3.

Here's the step I'm trying to execute:

{
  "StartAt": "Write manifest file",
  "States": {
    "Write manifest file": {
      "Type": "Task",
      "OutputPath": null,
      "ResultPath": null,
      "Resource": "arn:aws:states:::aws-sdk:s3:putObject",
      "Parameters": {
        "Bucket": "bucket",
        "Key.$": "States.Format('backfills/v1/{}/manifest.json', $.backfill.id)",
        "ContentType": "application/json",
        "Body": {
          "backupDateTime.$": "$.backfill.backupDateTime"
        }
      }
    }
  }
}

And the error I'm getting is:

[-1695 (eval)] l.s.s.a.c.eval_component : Exception=FailureEventException, Error=States.Runtime, Details={"taskFailedEventDetails": {"error": "States.Runtime", "cause": "'dict' object has no attribute 'tell'"}}

I'm using AWS CDK with TypeScript. Interestingly, if I build the Body with the following code: Body: { backupDateTime: '12345'} It doesn't work. However, if I change it to: Body: JSON.stringify({ backupDateTime: '12345' }) It works.

Thanks for your help!

from localstack.

MEPalma avatar MEPalma commented on September 25, 2024

Hi @gerson24

Thank you for providing the bug report! I was able to reproduce the behaviour and have recently merged some changes which should address this issue. I would be very grateful if you could test the new build at your earliest convenience. Thanks!

from localstack.

localstack-bot avatar localstack-bot commented on September 25, 2024

Hello 👋! It looks like this issue hasn’t been active in longer than two weeks. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

from localstack.

Related Issues (20)

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.