Skip to content

Cannot resolve domain in client in k8s #881

@z0mb1ek

Description

@z0mb1ek

I has search domain at my /etc/resolv.conf:

cat /etc/resolv.conf 
search dev.svc.cluster.local svc.cluster.local cluster.local local
nameserver 10.222.0.10
options ndots:5

On 2.16.8 version it worked well, i resolved nats:4222 on my service in kubernetes. But when i upgrade to 2.16.9 it starts raising exception:

exceptionOccurred, Exception: java.io.IOException: java.lang.IllegalArgumentException: port out of range:-1

i see this commits https://github.com/nats-io/nats.java/pull/847/files

could that be the reason?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions