<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting &amp;quot;__str__ returned non-string (TypeError)&amp;quot; for a minemeld.ft.http.HttpFT class in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/getting-quot-str-returned-non-string-typeerror-quot-for-a/m-p/228262#M98258</link>
    <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/79020"&gt;@danilo.souza&lt;/a&gt;, something is preventing MineMeld from successfully reaching the URL providing the feed. Could you, please, run the shell command &lt;FONT face="courier new,courier"&gt;curl &amp;lt;URL&amp;gt;&lt;/FONT&gt; from the OS hosting MineMeld to verify you can reach the feed?&lt;/P&gt;</description>
    <pubDate>Sat, 25 Aug 2018 09:35:49 GMT</pubDate>
    <dc:creator>xhoms</dc:creator>
    <dc:date>2018-08-25T09:35:49Z</dc:date>
    <item>
      <title>Getting "__str__ returned non-string (TypeError)" for a minemeld.ft.http.HttpFT class of prototype</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/getting-quot-str-returned-non-string-typeerror-quot-for-a/m-p/228192#M98255</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm dealing with a issue new to me, but&amp;nbsp;perhaps somebody else has already resolved it. I built a new local IPv4 prototype based on the malwaredomainlist.ip. The configuration is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;age_out:&lt;BR /&gt;&amp;nbsp; default: null&lt;BR /&gt;&amp;nbsp; sudden_death: true&lt;BR /&gt;attributes:&lt;BR /&gt;&amp;nbsp; confidence: 95&lt;BR /&gt;&amp;nbsp; share_level: green&lt;BR /&gt;&amp;nbsp; type: IPv4&lt;BR /&gt;interval: 300&lt;BR /&gt;indicator:&lt;BR /&gt;&amp;nbsp; regex: ([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})&lt;BR /&gt;&amp;nbsp; transform: \1&lt;BR /&gt;source_name: ag_log&lt;BR /&gt;url: http://xxx/static/log.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The point is, I only get the "__str__ returned non-string (TypeError)" error when I commit my configuration with the new node included, as shown the figure 1. The structure of the url mined is shown in figure 2. May be I'm wrong, but the miner is not being able to deal with the url mined, or the indicators mined. Am I wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp; in advanced.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 14:20:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/getting-quot-str-returned-non-string-typeerror-quot-for-a/m-p/228192#M98255</guid>
      <dc:creator>danilo.souza</dc:creator>
      <dc:date>2018-08-24T14:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting "__str__ returned non-string (TypeError)" for a minemeld.ft.http.HttpFT class</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/getting-quot-str-returned-non-string-typeerror-quot-for-a/m-p/228199#M98256</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/79020"&gt;@danilo.souza&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you, please, take a look at the engine log (/opt/minemeld/log/minemeld-engine.log) and look for corresponding error messages?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Share them in the discussion to try identify the root cause.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, in the meanwhile, you could try this alternative regex and template:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;indicator:
  regex: .*((\s)+([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})).*
  transform: \3
&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Aug 2018 14:57:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/getting-quot-str-returned-non-string-typeerror-quot-for-a/m-p/228199#M98256</guid>
      <dc:creator>xhoms</dc:creator>
      <dc:date>2018-08-24T14:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting "__str__ returned non-string (TypeError)" for a minemeld.ft.http.HttpFT class</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/getting-quot-str-returned-non-string-typeerror-quot-for-a/m-p/228214#M98257</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/6710"&gt;@xhoms&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a new prototype based in the regex you sent, but I got the same behaviour. I'm adding a figure with the&amp;nbsp; extract of the log related with this node specifically. Do you see anything relevant? I don't. May be certificate in the URL mined?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 16:43:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/getting-quot-str-returned-non-string-typeerror-quot-for-a/m-p/228214#M98257</guid>
      <dc:creator>danilo.souza</dc:creator>
      <dc:date>2018-08-24T16:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting "__str__ returned non-string (TypeError)" for a minemeld.ft.http.HttpFT class</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/getting-quot-str-returned-non-string-typeerror-quot-for-a/m-p/228262#M98258</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/79020"&gt;@danilo.souza&lt;/a&gt;, something is preventing MineMeld from successfully reaching the URL providing the feed. Could you, please, run the shell command &lt;FONT face="courier new,courier"&gt;curl &amp;lt;URL&amp;gt;&lt;/FONT&gt; from the OS hosting MineMeld to verify you can reach the feed?&lt;/P&gt;</description>
      <pubDate>Sat, 25 Aug 2018 09:35:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/getting-quot-str-returned-non-string-typeerror-quot-for-a/m-p/228262#M98258</guid>
      <dc:creator>xhoms</dc:creator>
      <dc:date>2018-08-25T09:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting "__str__ returned non-string (TypeError)" for a minemeld.ft.http.HttpFT class</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/getting-quot-str-returned-non-string-typeerror-quot-for-a/m-p/228353#M98259</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/6710"&gt;@xhoms&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I was right. The problem seems to be with the certificate. Look what I get (figure) running the shell command curl &amp;lt;URL&amp;gt;. My machine doesn't belive in the certificate chain. Is it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 11:40:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/getting-quot-str-returned-non-string-typeerror-quot-for-a/m-p/228353#M98259</guid>
      <dc:creator>danilo.souza</dc:creator>
      <dc:date>2018-08-27T11:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting "__str__ returned non-string (TypeError)" for a minemeld.ft.http.HttpFT class</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/getting-quot-str-returned-non-string-typeerror-quot-for-a/m-p/228354#M98260</link>
      <description>&lt;P&gt;You're right. MineMeld is not trusting the certificate of your feed. The Python engine MineMeld relies on has its own certificate store. So, if you want to import the certificate chain of your feed then you must import it onto Python's trust store (not your host trust certificate store).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option is to set the "verify_cert" class configuration attribute to false.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both options explained bu Luigi in the following response &lt;A href="https://live.paloaltonetworks.com/t5/MineMeld-Discussions/Minemeld-SSL-Certificates/m-p/113561/highlight/true#M345" target="_self"&gt;https://live.paloaltonetworks.com/t5/MineMeld-Discussions/Minemeld-SSL-Certificates/m-p/113561/highlight/true#M345&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 11:52:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/getting-quot-str-returned-non-string-typeerror-quot-for-a/m-p/228354#M98260</guid>
      <dc:creator>xhoms</dc:creator>
      <dc:date>2018-08-27T11:52:20Z</dc:date>
    </item>
  </channel>
</rss>

