ArgumentException: No ip address could be resolved for IP

2,088 views
Skip to first unread message

tas...@trigonongroup.com

unread,
Aug 30, 2017, 7:35:14 AM8/30/17
to rabbitmq-users
Hello.
And i have written the client part using the .net core version of  masstransit which includes  "RabbitMQ.Client/5.0.1"
The same code (using the ip address) works fine on the .net version.
But on the .net core i get
ArgumentException: No ip address could be resolved for IP
I tried to add a fake hostname that points to the ip via hosts but althought i don't get the same error i get
time out errors.
Any ideas please?

ps:I'm trying to find out if i can use the .net core version for production.Any suggestions?

Karl Nilsson

unread,
Aug 30, 2017, 8:53:20 AM8/30/17
to rabbitm...@googlegroups.com
Hi,

I don't really know MassTransit but without seeing your code it is very difficult to see what may be wrong.

Have you tried making a connection using only the RabbitMQ client directly? 

Cheers
Karl

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Karl Nilsson

Pivotal/RabbitMQ

tas...@trigonongroup.com

unread,
Aug 30, 2017, 9:08:49 AM8/30/17
to rabbitmq-users
Hello.
You are right.
So this is the .net core code that can't connect https://pastebin.com/frkFSRbW
which accepts messages from the .net core and replied with the same message.

Using curl
curl -i -u foo:bar "http://foo:15672/api/queues"
 
returns correctly.

I don't know if this is related
but also i couldn't understand what is the solution.
Thanks!
using .net framework works correctly.

On Wednesday, August 30, 2017 at 3:53:20 PM UTC+3, Karl Nilsson wrote:
Hi,

I don't really know MassTransit but without seeing your code it is very difficult to see what may be wrong.

Have you tried making a connection using only the RabbitMQ client directly? 

Cheers
Karl
On 30 August 2017 at 12:35, <tas...@trigonongroup.com> wrote:
Hello.
And i have written the client part using the .net core version of  masstransit which includes  "RabbitMQ.Client/5.0.1"
The same code (using the ip address) works fine on the .net version.
But on the .net core i get
ArgumentException: No ip address could be resolved for IP
I tried to add a fake hostname that points to the ip via hosts but althought i don't get the same error i get
time out errors.
Any ideas please?

ps:I'm trying to find out if i can use the .net core version for production.Any suggestions?

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Karl Nilsson

Pivotal/RabbitMQ

Karl Nilsson

unread,
Aug 30, 2017, 9:14:40 AM8/30/17
to rabbitm...@googlegroups.com
I'm not sure what the rabbitmq:// scheme is - is it something MassTransit specific? - normally you would use amqp: or amqps:

None of that code use the .NET client directly so perhaps it would be better to raise this with the MassTransit folks?

Can you check that you can telnet into port 5672 (not 15672 which is the http api)?

Karl

To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Karl Nilsson

Pivotal/RabbitMQ

tas...@trigonongroup.com

unread,
Aug 30, 2017, 9:19:28 AM8/30/17
to rabbitmq-users
Yes i can telnet on port 5672.
Ok i will try at masstransit...
Thanks!!!
Reply all
Reply to author
Forward
0 new messages