question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When I try to connect, I do get a silent timeout. My code:

           var influxDbClient = new InfluxDbClient("http://mydomain.com:8086/", "user", "pwd", InfluxDbVersion.v_1_0_0);
               Console.WriteLine("Pinging..");
               var responseP = await influxDbClient.Diagnostics.PingAsync();
               Console.WriteLine("Pinging..Done");

I use Windows 10 Home with .net core 2.0 and JetBrains Rider IDE. I downloade the latest InfluxData.Net libraries via “paket”. My server runs influx 1.0.2 on debian stretch linux.

I can connect to my influxdb without any problems via InfluxDB Studio. In my example above, I never get the “Pinging…Done” printout.

Any ideas?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
awb99commented, Jan 22, 2018

Issue is closed for sure! I kept it open, because I believe that a demo project added to the library would make sense. Otherwise one might end stuck and not start using this fantastic library!

0reactions
tihomir-kitcommented, Jan 22, 2018

Hi, yes - async functions should return tasks. And using .Result should be avoided. Please see this. Your calling function (the one that’s calling the influxdata.net lib functions) should also await otherwise it will run in a “fire and forget” mode and you’ll end up having strange results (you won’t be able to debug the method when you attach to the process, sometimes you might not get a result, etc…). So the issue you were having is not really specific to the library itself it’s more of the way async/await is supposed to be used.

Can I consider this resolved and close the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

My friend and I sit in silence when we hang out. Am I boring?
Is silence and quietness good within friendships when you are hanging out? Absolutely! Silence indicates comfort and warmth, and acceptance ...
Read more >
Learn how to listen, let the silence hang - Tim Bunting
Let the silence hang, speak when you have something to say. ENJOYED THIS? HAVE MORE. PREVIOUS ...
Read more >
The Silent Hanging Gardens | Black Desert Online - YouTube
this quest is defo in my top 10 for badly designed mmo quests. Thanks a lot for your help dude, saved me and...
Read more >
Hanging Out in Silence | Heart of the Dreaming
There's this saying about friends and relationships – how the best ones are often punctuated by periods of comfortable silence.
Read more >
Jupyter Notebook silently hanging after importing Client in ...
--> Entire notebook hangs now and seems to be unrecoverable. Of specific note: running the exact same commands via. docker exec -it $ ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found