datalust / seq-api

HTTP API client for Seq
https://datalust.co/seq
Apache License 2.0
77 stars 21 forks source link

Login on Seq by personal credential. #54

Closed jai2022 closed 5 years ago

jai2022 commented 5 years ago

I read logs from my local seq successfully, but when I try to read logs from a secure (organizational) seq with my personal credential or by using apiKey, then I got following exceptions.

Using apiKey ; Exception = Please Login

Using personal credential ; Exception = "One or more errors occurred. (500 - An unhandled error occurred while serving the request (token: 5569ca1649434ff8a79b654fa421ea50).)"

Here is my method call :

   var connection = new SeqConnection("{url}",apiKey);
   connection.Users.LoginAsync("username", "password").Wait();

Can you please tell me where is the mistake.?

nblumhardt commented 5 years ago

Hi @jai2022 - thanks for getting in touch. The 500 error from Seq indicates that something unexpected happened; the best avenue for diagnosing it is to check Seq's internal logs (an admin can get this from Settings > Diagnostics > Download a full diagnostic report.)

If the cause isn't clear from the logs, please feel free to post them through to support@getseq.net where we can check out what might be happening.

Best regards, Nick

nblumhardt commented 5 years ago

Closing as stale, please let us know if you weren't able to resolve this. Thanks!