Closed tinder-tder closed 4 months ago
Hi @tinder-tder,
Thanks for raising the issue. I have a couple of follow-up questions:
crt.sh:5432
can only handle a certain number of concurrent connections, and sometimes all of the connection slots are in use. I found an article in a public forum that discusses this issue: Google Groups.Thanks!
@ParthaI consistently, it only takes one query really with a follow up not long after (assuming its not cached). If its a rate limit itssue maybe the error can be clearer. or it can try and hold the connection open for cache period (dunno if that fits in the acceptable use policy)?
Hello @tinder-tder, I tried the following queries multiple times. However, I could not replicate the error. All the time I am getting the result successfully. It would be great if you could share the actual query you are trying to run. That may help us with replicating the error.
Queries:
select
dns_names,
not_after
from
crtsh_certificate
where
query = 'steampipe.io';
select id,dns_names, issuer ->> 'Organization', subject from crtsh_certificate where query = 'steampipe.io' and not_before < now()
and not_after > now();
If its a rate limit itssue maybe the error can be clearer. or it can try and hold the connection open for cache period (dunno if that fits in the acceptable use policy)
10
.5
.30
minutes.I have hardcoded these values for now and pushed the changes to the issue-28
branch.
Please take a stab at it in the issue-28
branch and share your observations with us to see if it helps.
Steps to try it out in the issue-28
branch:
git clone https://github.com/turbot/steampipe-plugin-crtsh.git
cd steampipe-plugin-crtsh
issue-28
branch: git checkout issue-28
make
If it helps, we can consider making those hardcoded values dynamic by configuring them in the connection config.
Thank you!
@ParthaI I tried the same queries with the current version and couldnt hit the error today too (maybe it was on their end). i tested the issue-28
branch too and it didnt error out
the domains tested yesterday and today were
tinder ops.net
match security.net
tinder security.net
I think we can close this or just update error handling to try to give a better error message, thanks for the quick turnaround!
Thanks @tinder-tder, for the confirmation. I am closing the issue since it is resolved. Please don't hesitate to reopen the issue/create a new one if you encounter any more issues. Thanks!
Describe the bug plugin seems to keep connections open and crash. After a few queries the plugin seems to error out (and return no results) and the only fix seems to be restarting steampipe
Steampipe version (
steampipe -v
) Example: v0.23.1Plugin version (
steampipe plugin list
) Example: v0.4.0To reproduce
Expected behavior Query run
Additional context plugin log
database log