Code Monkey home page Code Monkey logo

Comments (7)

adamw avatar adamw commented on May 18, 2024

Are you setting any non-String attributes on the message? (I suspect that might happen in queueMessagingTemplate.convertAndSend) Currently only String-typed attributes are supported

from elasticmq.

sanjaybhatol avatar sanjaybhatol commented on May 18, 2024

Hi Adam,
I am passing JSON message and facing the same issue. Is there any plan in near future to provide support for JSON type ?

from elasticmq.

sf-git avatar sf-git commented on May 18, 2024

I had the same issue. Spring Cloud uses spring-messaging which automatically adds UUID (string) and timestamp(long) to a message's headers. And those headers will be transformed into SQS message attributes. Timestamp causes this issue. As a workaround you can override doSend method in QueueMessagingTemplate and remove timestamp header from the message.

from elasticmq.

adamw avatar adamw commented on May 18, 2024

I think adding support for all message attribute types shouldn't be too hard, if somebody would like to attempt a PR :)

from elasticmq.

sf-git avatar sf-git commented on May 18, 2024

It wasn't ) I am currently working on it. Just need to write some more tests for SQSStrict mode to check that number attribute's value is inside -10^128 .. 10^126. So expect PR really soon )

from elasticmq.

adamw avatar adamw commented on May 18, 2024

Awesome! :)

from elasticmq.

adamw avatar adamw commented on May 18, 2024

Merged & released 0.8.10 - thanks!

from elasticmq.

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.