<?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: debug/refresh - TypeError: string indices must be integers, not str in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/debug-refresh-TypeError-string-indices-must-be-integers-not-str/m-p/150212#M9137</link>
    <description>&lt;P&gt;I am also doing this with a local account and SSO account. I cant decipher what the TypeError is referring to. I am using version 5.0.3&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jul 2014 17:18:59 GMT</pubDate>
    <dc:creator>ben_leung</dc:creator>
    <dc:date>2014-07-21T17:18:59Z</dc:date>
    <item>
      <title>debug/refresh - TypeError: string indices must be integers, not str</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/debug-refresh-TypeError-string-indices-must-be-integers-not-str/m-p/150209#M9134</link>
      <description>&lt;P&gt;After doing a /debug/refresh, I get the following error.&lt;/P&gt;

&lt;P&gt;"TypeError: string indices must be integers, not str"&lt;/P&gt;

&lt;P&gt;Below is the python traceback. Please help me understand this error and how to resolve this issue.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Traceback (most recent call last):
      File "/ngs/app/splunkp/splunk/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 606, in respond
        cherrypy.response.body = self.handler()
      File "/ngs/app/splunkp/splunk/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 25, in __call__
        return self.callable(*self.args, **self.kwargs)
      File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
      File "/ngs/app/splunkp/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 38, in rundecs
        return fn(*a, **kw)
      File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
      File "/ngs/app/splunkp/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 107, in check
        return fn(self, *a, **kw)
      File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
      File "/ngs/app/splunkp/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 156, in validate_ip
        return fn(self, *a, **kw)
      File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
      File "/ngs/app/splunkp/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 236, in preform_sso_check
        return fn(self, *a, **kw)
      File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
      File "/ngs/app/splunkp/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 348, in check_login
        return fn(self, *a, **kw)
      File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;lambda&amp;gt;
      File "/ngs/app/splunkp/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/decorators.py", line 369, in handle_exceptions
        return fn(self, *a, **kw)
      File "/ngs/app/splunkp/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/controllers/debug.py", line 268, in refresh
        msg = e.extendedMessages[0]['text']
    TypeError: string indices must be integers, not str
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Jul 2014 02:44:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/debug-refresh-TypeError-string-indices-must-be-integers-not-str/m-p/150209#M9134</guid>
      <dc:creator>ben_leung</dc:creator>
      <dc:date>2014-07-21T02:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: debug/refresh - TypeError: string indices must be integers, not str</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/debug-refresh-TypeError-string-indices-must-be-integers-not-str/m-p/150210#M9135</link>
      <description>&lt;P&gt;You need to be admin to do the debug/refresh. Try the same with an admin account.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;I am using Splunk 5.0.5 (with SSL authentication) and get the exact same error while doing &lt;A href="https://host:8000/en_US/debug/refresh"&gt;https://host:8000/en_US/debug/refresh&lt;/A&gt; using non-admin account.&lt;/P&gt;

&lt;P&gt;My Admin account has following capabilities.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;title   capabilities
admin   admin_all_objects
admin   change_authentication
admin   edit_deployment_client
admin   edit_deployment_server
admin   edit_dist_peer
admin   edit_forwarders
admin   edit_httpauths
admin   edit_input_defaults
admin   edit_monitor
admin   edit_roles
admin   edit_scripted
admin   edit_search_server
admin   edit_server
admin   edit_splunktcp
admin   edit_splunktcp_ssl
admin   edit_tcp
admin   edit_udp
admin   edit_user
admin   edit_web_settings
admin   indexes_edit
admin   license_edit
admin   license_tab
admin   list_deployment_client
admin   list_forwarders
admin   list_httpauths
admin   rest_apps_management
admin   restart_splunkd
admin   run_debug_commands
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For obvious reasons, the last capability looks responsible for providing debug/refresh capability.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2014 14:28:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/debug-refresh-TypeError-string-indices-must-be-integers-not-str/m-p/150210#M9135</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-21T14:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: debug/refresh - TypeError: string indices must be integers, not str</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/debug-refresh-TypeError-string-indices-must-be-integers-not-str/m-p/150211#M9136</link>
      <description>&lt;P&gt;Yes, I have the admin role. Are there certain capabilities I might be missing? In our setup, the admin role has not been changed.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2014 15:21:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/debug-refresh-TypeError-string-indices-must-be-integers-not-str/m-p/150211#M9136</guid>
      <dc:creator>ben_leung</dc:creator>
      <dc:date>2014-07-21T15:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: debug/refresh - TypeError: string indices must be integers, not str</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/debug-refresh-TypeError-string-indices-must-be-integers-not-str/m-p/150212#M9137</link>
      <description>&lt;P&gt;I am also doing this with a local account and SSO account. I cant decipher what the TypeError is referring to. I am using version 5.0.3&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2014 17:18:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/debug-refresh-TypeError-string-indices-must-be-integers-not-str/m-p/150212#M9137</guid>
      <dc:creator>ben_leung</dc:creator>
      <dc:date>2014-07-21T17:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: debug/refresh - TypeError: string indices must be integers, not str</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/debug-refresh-TypeError-string-indices-must-be-integers-not-str/m-p/150213#M9138</link>
      <description>&lt;P&gt;Admin role does have the capability "run_debug_commands", still getting the error though. I restarted the search head and tried to debug/refresh again, same error comes up.&lt;/P&gt;

&lt;P&gt;UPDATE: I ran the debug/refresh on the VIP URL and it was successful.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:08:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/debug-refresh-TypeError-string-indices-must-be-integers-not-str/m-p/150213#M9138</guid>
      <dc:creator>ben_leung</dc:creator>
      <dc:date>2020-09-28T17:08:01Z</dc:date>
    </item>
  </channel>
</rss>

