<?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: Webhook Request Mode in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-request-mode/m-p/1026308#M32447</link>
    <description>&lt;P&gt;Same problem here. I have set up a webhook in Survey123. To test it, I created a webhook at&amp;nbsp;&lt;A href="https://webhook.site" target="_blank"&gt;https://webhook.site&lt;/A&gt;. When a new form is submitted, the webhook seems to be receiving just the OPTIONS request:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JorgeMonge_0-1613144168987.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5910iD0B53F7B03D03849/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JorgeMonge_0-1613144168987.png" alt="JorgeMonge_0-1613144168987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, testing the same webhook with an online API testing tool (&lt;A href="https://reqbin.com/)" target="_blank"&gt;https://reqbin.com/)&lt;/A&gt;&amp;nbsp;works fine, suggesting that the issue is from the source at Survey123 and not in the webhook:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JorgeMonge_1-1613144280373.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5911i1C4D2F66670E6B49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JorgeMonge_1-1613144280373.png" alt="JorgeMonge_1-1613144280373.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JorgeMonge_2-1613144324312.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5912i1CE2D2F16C4C3B3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JorgeMonge_2-1613144324312.png" alt="JorgeMonge_2-1613144324312.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2021 15:38:52 GMT</pubDate>
    <dc:creator>JorgeMonge</dc:creator>
    <dc:date>2021-02-12T15:38:52Z</dc:date>
    <item>
      <title>Webhook Request Mode</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-request-mode/m-p/816793#M14804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;We have set up a survey that shall send the survey data via webhook to FME Server. FME Server does receive the request from Survey123 but not the data. Debugging the communication in the web browser shows that the request is sent with Request Mode "OPTIONS".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/488008_GeoNet_RequestMode.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What effect does this parameter have and especially the OPTIONS value?&lt;/LI&gt;&lt;LI&gt;Is OPTIONS the correct setting for this parameter (or should it be GET)?&lt;/LI&gt;&lt;LI&gt;How can we change/influence the setting of this parameter in the SURVEY123 webhook configuration.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help, best regards.&lt;/P&gt;&lt;P&gt;Jürgen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 06:47:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/webhook-request-mode/m-p/816793#M14804</guid>
      <dc:creator>JürgenBiendara</dc:creator>
      <dc:date>2020-04-09T06:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook Request Mode</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-request-mode/m-p/816794#M14805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jürgen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request"&gt;The OPTIONS request is a standard pre-flight (pre-submission) request to check for CORS compatibility at the submission endpoint. &lt;/A&gt; You should see that the data is not sent, but should be following in a following POST request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 18:51:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/webhook-request-mode/m-p/816794#M14805</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2020-04-14T18:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook Request Mode</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-request-mode/m-p/1026308#M32447</link>
      <description>&lt;P&gt;Same problem here. I have set up a webhook in Survey123. To test it, I created a webhook at&amp;nbsp;&lt;A href="https://webhook.site" target="_blank"&gt;https://webhook.site&lt;/A&gt;. When a new form is submitted, the webhook seems to be receiving just the OPTIONS request:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JorgeMonge_0-1613144168987.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5910iD0B53F7B03D03849/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JorgeMonge_0-1613144168987.png" alt="JorgeMonge_0-1613144168987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, testing the same webhook with an online API testing tool (&lt;A href="https://reqbin.com/)" target="_blank"&gt;https://reqbin.com/)&lt;/A&gt;&amp;nbsp;works fine, suggesting that the issue is from the source at Survey123 and not in the webhook:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JorgeMonge_1-1613144280373.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5911i1C4D2F66670E6B49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JorgeMonge_1-1613144280373.png" alt="JorgeMonge_1-1613144280373.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JorgeMonge_2-1613144324312.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5912i1CE2D2F16C4C3B3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JorgeMonge_2-1613144324312.png" alt="JorgeMonge_2-1613144324312.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 15:38:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/webhook-request-mode/m-p/1026308#M32447</guid>
      <dc:creator>JorgeMonge</dc:creator>
      <dc:date>2021-02-12T15:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook Request Mode</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/webhook-request-mode/m-p/1259711#M47545</link>
      <description>&lt;P&gt;I was having a problem with the survey123 webhooks on a simple custom https server to test getting a notification from the survey. My endpoint was working just fine if I accessed it through the browser or postman, but always failed when submitting a survey123. My endpoint is nearly identical to the one shown in ESRI's own example on github:&amp;nbsp;&lt;A href="https://github.com/Esri/webhooks-samples/tree/master/Developer/python/flask" target="_blank" rel="noopener"&gt;https://github.com/Esri/webhooks-samples/tree/master/Developer/python/flask&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The only error message survey123 gave me was "failed to fetch". My endpoint also showed only an OPTIONS request and no POST as I was expecting.&lt;/P&gt;&lt;P&gt;Some searching led me to suspect CORS was the issue (in my experience it's&amp;nbsp;&lt;EM&gt;always&lt;/EM&gt; a CORS issue), so I added the header&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Access-Control-Allow-Origin: *&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with the same failed results. Further searching finally led me to the final headers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Access-Control-Allow-Origin: https://survey123.arcgis.com
Access-Control-Allow-Methods: POST, GET, OPTIONS
Access-Control-Allow-Headers: Content-Type&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and my endpoint could finally receive the POST request and json data payload from the survey123 webhook.&lt;/P&gt;&lt;P&gt;ESRI's &lt;A href="https://doc.arcgis.com/en/survey123/browser/create-surveys/webhooks.htm" target="_self"&gt;help about survey123 webhooks&lt;/A&gt; says&amp;nbsp;&lt;STRONG&gt;nothing&lt;/STRONG&gt; about requiring these headers to be included when responding to the webhook's OPTIONS request!&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 19:15:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/webhook-request-mode/m-p/1259711#M47545</guid>
      <dc:creator>quillaja</dc:creator>
      <dc:date>2023-02-19T19:15:11Z</dc:date>
    </item>
  </channel>
</rss>

