Giter Site home page Giter Site logo

renanvieira / phoenix-letter Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 7.0 98 KB

CLI to bring your messages back from SQS Dead Letter Queues.

License: MIT License

Python 99.07% Makefile 0.93%
cli dead-letter-queue dlq phoenix-letter python queue sqs

phoenix-letter's Introduction

Top Langs

phoenix-letter's People

Contributors

dependabot[bot] avatar quixand avatar renanvieira avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

phoenix-letter's Issues

Crash when MessageAttributes is empty

The code doesn't seem to handle a missing MessageAttributes array element, which is entirely acceptable from SQS.

sqs_client.receive_message(QueueUrl=source_queue_url, MessageAttributeNames=["All"],
                                                       AttributeNames=['All'],
                                                       MaxNumberOfMessages=args.max_receive_messages)

is correctly asking to receive Message Atributes, but then

send_response = sqs_client.send_message(QueueUrl=destination_queue_url,
                                                    MessageBody=message['Body'],
                                                    MessageAttributes=message['MessageAttributes'])

is re-sending assuming something was returned.
I'm not even a Python novice, so can't submit a worthy PR, but seems fairly trivial. Can anyone replicate?
Thanks!

FIFO queues support - MessageGroupId

Hi, it seems that with FIFO queues, MessageGroupId is required with send_message. It would be nice if the tool could take it as a parameter or use the existing MessageGroupIds from (FIFO) DLQ

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.