<?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 Web API Services and Error 500 in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Web-API-Services-and-Error-500/m-p/70420#M23025</link>
    <description>I'm trying out Web API Services for real now and I wonder how come an HTTP status code 500 throws an exception? My expectation was that I would get my status code and be able deal with it in my object using the service, or at least that I could set it on the service to throw or not.&lt;BR /&gt;&lt;BR /&gt;Anyone have a workaround?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For my use case, I want to try web calls and collect their status codes, so I'd rather want the exact response code than a exception.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Orjan Almen&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 26 Jan 2022 15:54:00 GMT</pubDate>
    <dc:creator>orjan.almen</dc:creator>
    <dc:date>2022-01-26T15:54:00Z</dc:date>
    <item>
      <title>Web API Services and Error 500</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Web-API-Services-and-Error-500/m-p/70420#M23025</link>
      <description>I'm trying out Web API Services for real now and I wonder how come an HTTP status code 500 throws an exception? My expectation was that I would get my status code and be able deal with it in my object using the service, or at least that I could set it on the service to throw or not.&lt;BR /&gt;&lt;BR /&gt;Anyone have a workaround?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For my use case, I want to try web calls and collect their status codes, so I'd rather want the exact response code than a exception.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Orjan Almen&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jan 2022 15:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Web-API-Services-and-Error-500/m-p/70420#M23025</guid>
      <dc:creator>orjan.almen</dc:creator>
      <dc:date>2022-01-26T15:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: Web API Services and Error 500</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Web-API-Services-and-Error-500/m-p/70421#M23026</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="dd6dd06c-5351-4b7b-be2d-c15b7884aadc" data-tag-text="@Orjan Almen" href="https://community.blueprism.com/network/profile?UserKey=dd6dd06c-5351-4b7b-be2d-c15b7884aadc" data-itemmentionkey="1f14bbdc-c612-43c7-9550-280a15b24d84"&gt;@Orjan Almen&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;This is by design believe it or not. I agree with you though that the expectation would be to simply receive the response status code. I've brought this up with product previously, but I don't know that it will ever be changed.&lt;BR /&gt;&lt;BR /&gt;For now, the best solution is to simply wrap your Web API service calls in a Block stage and process the exception. You'll receive the code and any response string, but you'll likely need to do some minimal parsing of it.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jan 2022 20:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Web-API-Services-and-Error-500/m-p/70421#M23026</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-01-26T20:13:00Z</dc:date>
    </item>
  </channel>
</rss>

