<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>To influence the timeout you can reduce http_timeout_sec.</p>
<p>I will look into the error_procedure thing.<br>
</p>
<div class="moz-cite-prefix">On 14/01/2019 09.46, Vaclav Bruzek
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAQS+TcPSD663GjhGXNk_M_VwFja5TAZso4S_3G--jFNopOu4g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hi,
<div>I've recently encountered a problem with the
rest-api-output bot. The bot sometimes timeouts because
the consumer endpoint is unavailable. I've thought that
the <font color="#000000"><span style="white-space:pre-wrap">error_procedure -> pass would solve the problem and the bot would retry after several seconds (immediately in current set-up). However the bot tries once and than stops I thought that max retiries discards the event but in this case it seems that it shuts down the bot itself. There are no modifications to the code of the code. Following is the runtime configuration without the targets configuration. The exception is quite large so I've added it to the attachment. </span></font></div>
<div><br>
</div>
<div>
<div>"rest-api-0-output":{</div>
<div> "group":"Output",</div>
<div> "module":"intelmq.bots.outputs.restapi.output",</div>
<div> "name":"REST API",</div>
<div> "parameters":{</div>
<div> "error_dump_message":true,</div>
<div> "error_log_message":true,</div>
<div> "error_max_retries":1,</div>
<div> "error_procedure":"pass",</div>
<div> "error_retry_delay":0,</div>
<div> "hierarchical_output":true,</div>
<div> "use_json":true</div>
<div> }</div>
<div>},</div>
</div>
<div><br clear="all">
<div>
<div dir="ltr"
class="m_7113859477210973719gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">Sincerely,
<div>Václav Brůžek</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Intelmq-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Intelmq-dev@lists.cert.at">Intelmq-dev@lists.cert.at</a>
<a class="moz-txt-link-freetext" href="https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev">https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
// Sebastian Wagner <a class="moz-txt-link-rfc2396E" href="mailto:wagner@cert.at"><wagner@cert.at></a> - T: +43 1 5056416 7201
// CERT Austria - <a class="moz-txt-link-freetext" href="https://www.cert.at/">https://www.cert.at/</a>
// Eine Initiative der nic.at GmbH - <a class="moz-txt-link-freetext" href="https://www.nic.at/">https://www.nic.at/</a>
// Firmenbuchnummer 172568b, LG Salzburg</pre>
</body>
</html>