<?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 viya job api gives html 500 internal server errror in Developers</title>
    <link>https://communities.sas.com/t5/Developers/viya-job-api-gives-html-500-internal-server-errror/m-p/901706#M6445</link>
    <description>&lt;P&gt;&lt;BR /&gt;We've build a log scanner which make use of de viya job api through the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let base_uri=%sysfunc(getoption(SERVICESBASEURL));&lt;/P&gt;
&lt;P&gt;proc http method=get oauth_bearer = sas_services&lt;BR /&gt;url="&amp;amp;base_uri/jobExecution/jobs/?limit=3000"&lt;BR /&gt;out=jobrec;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;Starting from the end of September, it sometimes gives an error. The cause of this error is the fact that the api give a html status 500 internal server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have replicated using api calls from curl.&lt;/P&gt;
&lt;P&gt;curl -o results &lt;A href="https://xxx.ondemand.sas.com/jobExecution/jobs/?limit=3000" target="_blank"&gt;https://xxx.ondemand.sas.com/jobExecution/jobs/?limit=3000&lt;/A&gt; --cacert xxxx -H "Authorization: Bearer $BEARER_TOKEN"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if the result is smaller (limit set to &amp;lt;1000) I can get results almost immediately and for each call, for bigger results we are getting htt500.&lt;/P&gt;
&lt;P&gt;I run the same in the loop and around 10% calls were successfull;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output in size is around 60mb (slightly less) with limits starting from 1000.&lt;BR /&gt;The maximum size with limit 3000 (used by customer) is 59.8mb&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-rw-r--r-- 1 splbrk UsersGrp 59629324 Nov 2 04:31 results (limit 1000)&lt;BR /&gt;-rw-r--r-- 1 splbrk UsersGrp 60200103 Nov 2 04:31 results2 (limit 1200)&lt;BR /&gt;-rw-r--r-- 1 splbrk UsersGrp 62686500 Nov 2 04:41 results3 (limit 3000)&lt;/P&gt;
&lt;P&gt;I would say that ~60mb is something that doesnt make happy our calls even this is still very small output.&lt;/P&gt;
&lt;P&gt;Is there any limit? Any options to steer? I have found in tessa similar issue but for Viya 3.5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Bartosz&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 12:41:54 GMT</pubDate>
    <dc:creator>bartoszkutyla</dc:creator>
    <dc:date>2023-11-06T12:41:54Z</dc:date>
    <item>
      <title>viya job api gives html 500 internal server errror</title>
      <link>https://communities.sas.com/t5/Developers/viya-job-api-gives-html-500-internal-server-errror/m-p/901706#M6445</link>
      <description>&lt;P&gt;&lt;BR /&gt;We've build a log scanner which make use of de viya job api through the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let base_uri=%sysfunc(getoption(SERVICESBASEURL));&lt;/P&gt;
&lt;P&gt;proc http method=get oauth_bearer = sas_services&lt;BR /&gt;url="&amp;amp;base_uri/jobExecution/jobs/?limit=3000"&lt;BR /&gt;out=jobrec;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;Starting from the end of September, it sometimes gives an error. The cause of this error is the fact that the api give a html status 500 internal server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have replicated using api calls from curl.&lt;/P&gt;
&lt;P&gt;curl -o results &lt;A href="https://xxx.ondemand.sas.com/jobExecution/jobs/?limit=3000" target="_blank"&gt;https://xxx.ondemand.sas.com/jobExecution/jobs/?limit=3000&lt;/A&gt; --cacert xxxx -H "Authorization: Bearer $BEARER_TOKEN"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if the result is smaller (limit set to &amp;lt;1000) I can get results almost immediately and for each call, for bigger results we are getting htt500.&lt;/P&gt;
&lt;P&gt;I run the same in the loop and around 10% calls were successfull;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output in size is around 60mb (slightly less) with limits starting from 1000.&lt;BR /&gt;The maximum size with limit 3000 (used by customer) is 59.8mb&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-rw-r--r-- 1 splbrk UsersGrp 59629324 Nov 2 04:31 results (limit 1000)&lt;BR /&gt;-rw-r--r-- 1 splbrk UsersGrp 60200103 Nov 2 04:31 results2 (limit 1200)&lt;BR /&gt;-rw-r--r-- 1 splbrk UsersGrp 62686500 Nov 2 04:41 results3 (limit 3000)&lt;/P&gt;
&lt;P&gt;I would say that ~60mb is something that doesnt make happy our calls even this is still very small output.&lt;/P&gt;
&lt;P&gt;Is there any limit? Any options to steer? I have found in tessa similar issue but for Viya 3.5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Bartosz&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 12:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/viya-job-api-gives-html-500-internal-server-errror/m-p/901706#M6445</guid>
      <dc:creator>bartoszkutyla</dc:creator>
      <dc:date>2023-11-06T12:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: viya job api gives html 500 internal server errror</title>
      <link>https://communities.sas.com/t5/Developers/viya-job-api-gives-html-500-internal-server-errror/m-p/901744#M6446</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41938"&gt;@bartoszkutyla&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I don't know of any limits. This issues most likely will take some investigation based on your SAS Viya environment. I would recommend &lt;A href="https://support.sas.com/en/technical-support.html" target="_self"&gt;opening a service ticket&lt;/A&gt; with tech support for this investigation. Tech support may be aware of limitations.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 15:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/viya-job-api-gives-html-500-internal-server-errror/m-p/901744#M6446</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2023-11-06T15:22:16Z</dc:date>
    </item>
  </channel>
</rss>

