<?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: JSONDecodeError in SDWAN API response in Python in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/jsondecodeerror-in-sdwan-api-response-in-python/m-p/4636308#M1067</link>
    <description>&lt;P&gt;No &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1368952"&gt;@rohanupadhye01&lt;/a&gt; , not yet. Alot of methods are working well but some just do not give validated json I think.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 05:07:52 GMT</pubDate>
    <dc:creator>hrmt92</dc:creator>
    <dc:date>2022-06-22T05:07:52Z</dc:date>
    <item>
      <title>JSONDecodeError in SDWAN API response in Python</title>
      <link>https://community.cisco.com/t5/controllers/jsondecodeerror-in-sdwan-api-response-in-python/m-p/4603138#M1064</link>
      <description>&lt;P&gt;I am automating a task via the SDWAN API and whenever I request a response from methods like &lt;STRONG&gt;get_device_config&lt;/STRONG&gt; or &lt;STRONG&gt;export_device_template_list&lt;/STRONG&gt;, I get below error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;result_json = json.loads(response.text)&lt;BR /&gt;File "C:\Users\htmc0583\AppData\Local\Programs\Python\Python39\lib\json\__init__.py", line 346, in loads&lt;BR /&gt;return _default_decoder.decode(s)&lt;BR /&gt;File "C:\Users\htmc0583\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode&lt;BR /&gt;obj, end = self.raw_decode(s, idx=_w(s, 0).end())&lt;BR /&gt;File "C:\Users\htmc0583\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 355, in raw_decode&lt;BR /&gt;raise JSONDecodeError("Expecting value", s, err.value) from None&lt;BR /&gt;json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The json that I am getting is not valid for some reason. Anybody faced the same issue and any solution to this?&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 05:28:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/jsondecodeerror-in-sdwan-api-response-in-python/m-p/4603138#M1064</guid>
      <dc:creator>hrmt92</dc:creator>
      <dc:date>2022-05-02T05:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: JSONDecodeError in SDWAN API response in Python</title>
      <link>https://community.cisco.com/t5/controllers/jsondecodeerror-in-sdwan-api-response-in-python/m-p/4603245#M1065</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1348786"&gt;@hrmt92&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;“json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)” can occur when you try to decode an empty string as JSON. This might occur when your code is accessing a web API and getting an empty response, reading a file with nothing in it, or simply passing an empty string to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;json.loads()&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 12:47:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/jsondecodeerror-in-sdwan-api-response-in-python/m-p/4603245#M1065</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2022-05-02T12:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: JSONDecodeError in SDWAN API response in Python</title>
      <link>https://community.cisco.com/t5/controllers/jsondecodeerror-in-sdwan-api-response-in-python/m-p/4634910#M1066</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1348786"&gt;@hrmt92&lt;/a&gt;&amp;nbsp;did you get a solution to this problem??&lt;/P&gt;&lt;P&gt;If so can you please share the solution&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 12:03:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/jsondecodeerror-in-sdwan-api-response-in-python/m-p/4634910#M1066</guid>
      <dc:creator>rohanupadhye01</dc:creator>
      <dc:date>2022-06-20T12:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: JSONDecodeError in SDWAN API response in Python</title>
      <link>https://community.cisco.com/t5/controllers/jsondecodeerror-in-sdwan-api-response-in-python/m-p/4636308#M1067</link>
      <description>&lt;P&gt;No &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1368952"&gt;@rohanupadhye01&lt;/a&gt; , not yet. Alot of methods are working well but some just do not give validated json I think.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 05:07:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/jsondecodeerror-in-sdwan-api-response-in-python/m-p/4636308#M1067</guid>
      <dc:creator>hrmt92</dc:creator>
      <dc:date>2022-06-22T05:07:52Z</dc:date>
    </item>
  </channel>
</rss>

