Giter VIP home page Giter VIP logo

Comments (6)

deepkimchi avatar deepkimchi commented on June 2, 2024 1

We are encountering a similar issue. I am uncertain if this is an AWS SDK issue or Elasticmq issue. I am using the following setup for the SQS client and have started receiving a 400 error after upgrading the AWS SDK v2 version from 2.21 to 2.25.18.

        SqsAsyncClient.builder()
            .credentialsProvider(AnonymousCredentialsProvider.create())
            .overrideConfiguration(
                ClientOverrideConfiguration.builder()
                    .putHeader("Host", "localhost:9324")
                    .build()
            )
            .endpointOverride(URI("http://localhost:9324"))
            .region(Region.of("local"))
            .build()

from elasticmq.

micossow avatar micossow commented on June 2, 2024

@adamZakar are you sure that a queue test did not exist at the moment the code was running? Can you attach logs from ElasticMQ?

from elasticmq.

micossow avatar micossow commented on June 2, 2024

@deepkimchi I can't reproduce the issue with the following steps:

  1. Start the latest ElasticMQ version (1.5.8) via docker:
docker run -p 9324:9324 --rm softwaremill/elasticmq-native
  1. Setup SQS client using AWS SDK 2.25.18 using your code
  2. Create queue:
client.createQueue(CreateQueueRequest.builder().queueName("testQueue1").build()).get()

And it works. Any idea what's missing?

from elasticmq.

adamZakar avatar adamZakar commented on June 2, 2024

Only logs that's are related to ElasticMQ.

16:39:51.374 [elasticmq-akka.actor.default-dispatcher-4] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started
16:39:51.878 [elasticmq-akka.actor.default-dispatcher-4] INFO o.e.rest.sqs.TheSQSRestServerBuilder - Started SQS rest server, bind address :60435, visible server address http://localhost:60435

We use the in memory version of it. Can you try to initiate the client the way we did it?

We are using this version of elastic mq: https://mvnrepository.com/artifact/org.elasticmq/elasticmq-server_2.13/1.2.1
we are using the latest version of AWS SDK 2.0

from elasticmq.

micossow avatar micossow commented on June 2, 2024

Version 1.2.1 does not support AWS SDK 2.0. Please upgrade to latest.

from elasticmq.

adamZakar avatar adamZakar commented on June 2, 2024

It solved the issue thanks. closing the ticket.

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.