Git Product home page Git Product logo

Comments (4)

pboling avatar pboling commented on May 23, 2024 2

Yes, new maintainers just came on board. We are working through the issues now. Also, please try the new release 1.2.1.

from dynamoid.

mstahl avatar mstahl commented on May 23, 2024

I am also experiencing this error but in a slightly more bizarre circumstance. When I have my Rails app and DynamoDB local running in a docker-compose cluster, everything works great. I'm able to save and query for objects in DynamoDB just fine. When I run the Rails app in Docker but run DynamoDB in a separate VM or locally on my laptop, even though I am able to telnet to the right port on the host machine from Docker, I get this error. I also get it if DynamoDB local isn't running.

The swallowing of exceptions most definitely needs to get fixed on the concurrent-ruby side of things, but I suspect something else might be going on here. It takes nearly 5 minutes to time out, too, so this has been really hard to figure out.

This issue has been open for over a month now. Is anyone actively developing Dynamoid still?

from dynamoid.

andrykonchin avatar andrykonchin commented on May 23, 2024

Currently I reproduce meaningful Seahorse::Client::NetworkingError exception (dynamoid-2.0.0).

.../ruby/2.4.0/net/http.rb:906:in `rescue in block in connect': Failed to open TCP connection to localhost:3000 (Connection refused - connect(2) for "localhost" port 3000) (Seahorse::Client::NetworkingError)

@pboling Maybe we need to wrap it with Dynamoid's exception like Dynamoid::Errors::NetworkError

Script to reproduce

require 'aws-sdk'
require 'dynamoid'

Aws.config.update({
  region: 'us-west-2',
  credentials: Aws::Credentials.new('REPLACE_WITH_ACCESS_KEY_ID', 'REPLACE_WITH_SECRET_ACCESS_KEY'),
})

Dynamoid.configure do |config|
  config.endpoint = 'http://localhost:3000'
end

class Document
  include Dynamoid::Document
end

Document.create_table

from dynamoid.

pboling avatar pboling commented on May 23, 2024

I think we should allow the underlying transport errors to bubble up. 👍

from dynamoid.

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.