dasch / avro_turf

A library that makes it easier to use the Avro serialization format from Ruby.
MIT License
167 stars 80 forks source link

Intermittent error using Confluent Schema Registry #163

Closed night91 closed 2 years ago

night91 commented 2 years ago

Using confluent schema registry gives intermittent errors.

Got it down to Excon. This below gives sometimes: no address for (Resolv::ResolvError) and other times an OK. Similar error when using .encode

Excon.new("<CONFLUENT_REGISTRY_URL>", user: "USER", password: "PASSWORD").request

Also a simple: nslookup gives intermittent errors.

Any ideas working with Confluent Schema Registry?

Versions: avro_turf (1.6.0) excon (0.92.3)

night91 commented 2 years ago

No error if: gem "excon", "~> 0.79.0"

0.80 introduced: use Ruby Resolv for hostname lookup So getting the error now using:

require "resolv" p Resolv.getaddress "psrc-4nrnd.us-central1.gcp.confluent.cloud"

Testing inside a docker container of linux and no problem. So maybe is my Mac.