WhatsAppNETClient / WhatsAppNETClient2

32 stars 23 forks source link

.NET Core Forms #19

Closed julianodev closed 2 years ago

julianodev commented 2 years ago

Does it work with .NET Core forms? When I call Connect nothing happens?

julianodev commented 2 years ago

for me to use in an environment with https , do I need to do something more than inform the url and port in the project?

Em 12 de mar. de 2022, à(s) 00:12, WhatsAppNETClient @.***> escreveu:

As far as I know, net core doesn't support windows form yet

WhatsAppNETClient commented 2 years ago

for me to use in an environment with https , do I need to do something more than inform the url and port in the project? Em 12 de mar. de 2022, à(s) 00:12, WhatsAppNETClient @.***> escreveu: As far as I know, net core doesn't support windows form yet

For now it doesn't support https

julianodev commented 2 years ago

locally works, But when trying to put on a test server. Does not work returns service unavailable. Could you help me, please?

1 step

image

2 step netsh http add urlacl url=http://+:5555/ user=everyone

Then when I run the application on the server, it connects to whatsapp, but when I try to access via rest it returns service unavailable

image

I am using WhatsAppNETAPIRestApiCSharp

Thanks

WhatsAppNETClient commented 2 years ago

@julianodev

try run WhatsAppNETAPIrestApiCSharp.exe as administrator

WhatsAppNETClient commented 2 years ago

or try replacing:

var url = "http://*";

becomes

var url = "http://+";

julianodev commented 2 years ago

Even running as administrator, and changing to your suggestion didn't work.

Is there anything else you can help me with? I recorded a small video for you to see the behavior

I changed as you suggested

image

https://user-images.githubusercontent.com/20190078/158045152-f171d073-6acd-448b-b6e1-9a6ab4fd5f00.mp4

julianodev commented 2 years ago

And even reserving a range of ports, and running the application, when I run netstat -ano it is not listed :(

But if I create a manual node application, it works perfectly on the server.

image

julianodev commented 2 years ago

I believe it has to do with the port, I was doing a test on some ports, with port 9999 it worked for a while but then it stopped working.

I will continue the investigation

julianodev commented 2 years ago

When I mark REST API SERVICE and access to URL works, in the 2nd attempt it not already works

image

WhatsAppNETClient commented 2 years ago

When I mark REST API SERVICE and access to URL works, in the 2nd attempt it not already works

image

Try accessing the endpoint using a rest client like Postman, don't use a browser right away