<?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 Push JSON to external website not working in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/push-json-to-external-website-not-working/m-p/1037621#M3490</link>
    <description>&lt;P&gt;We are having problems trying to use the Push JSON to External Website output in a GeoEvent Service.&amp;nbsp; Our GeoEvent Server instance is running v10.8 on Windows Server 2016.&lt;/P&gt;&lt;P&gt;The geoevent service runs as expected and outputs json.&amp;nbsp; I have confirmed this by attaching a second output, Write to a JSON file.&amp;nbsp; The json itself is correct and complete.&lt;/P&gt;&lt;P&gt;The external website we need to send the json to is actually hosted locally on the same server.&amp;nbsp; Therefore I first configured the Push JSON output to call the external site at&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" rel="noopener"&gt;http://localhost:&amp;lt;port&amp;gt;/api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This URL works in Postman and a web browser on the server, but the geoevent output doesn't work.&lt;/P&gt;&lt;P&gt;I have also configured the output to use a fully qualified URL:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" rel="noopener"&gt;http://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This url isn't working in geoevent server either, although it does work from Postman and a browser.&lt;/P&gt;&lt;P&gt;GeoEvent server is configured to use our proxy server in site settings.&lt;/P&gt;&lt;P&gt;Am I missing a step to get this Push JSON output to work?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 15:33:15 GMT</pubDate>
    <dc:creator>GeoSolver</dc:creator>
    <dc:date>2021-03-17T15:33:15Z</dc:date>
    <item>
      <title>Push JSON to external website not working</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/push-json-to-external-website-not-working/m-p/1037621#M3490</link>
      <description>&lt;P&gt;We are having problems trying to use the Push JSON to External Website output in a GeoEvent Service.&amp;nbsp; Our GeoEvent Server instance is running v10.8 on Windows Server 2016.&lt;/P&gt;&lt;P&gt;The geoevent service runs as expected and outputs json.&amp;nbsp; I have confirmed this by attaching a second output, Write to a JSON file.&amp;nbsp; The json itself is correct and complete.&lt;/P&gt;&lt;P&gt;The external website we need to send the json to is actually hosted locally on the same server.&amp;nbsp; Therefore I first configured the Push JSON output to call the external site at&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" rel="noopener"&gt;http://localhost:&amp;lt;port&amp;gt;/api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This URL works in Postman and a web browser on the server, but the geoevent output doesn't work.&lt;/P&gt;&lt;P&gt;I have also configured the output to use a fully qualified URL:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" rel="noopener"&gt;http://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This url isn't working in geoevent server either, although it does work from Postman and a browser.&lt;/P&gt;&lt;P&gt;GeoEvent server is configured to use our proxy server in site settings.&lt;/P&gt;&lt;P&gt;Am I missing a step to get this Push JSON output to work?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 15:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/push-json-to-external-website-not-working/m-p/1037621#M3490</guid>
      <dc:creator>GeoSolver</dc:creator>
      <dc:date>2021-03-17T15:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Push JSON to external website not working</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/push-json-to-external-website-not-working/m-p/1053449#M3526</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/201696"&gt;@GeoSolver&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There could be a number of things getting in the way here. We'll start with the first two that come to my mind:&lt;/P&gt;&lt;P&gt;1. You have posted that you are using &lt;A href="http://localhost," target="_blank"&gt;http://localhost,&lt;/A&gt;&amp;nbsp;so this should work. But if you are using &lt;A href="https://localhost," target="_blank"&gt;https://localhost,&lt;/A&gt;&amp;nbsp;you might want to switch to FQDN and import the certifcate used by the server into GeoEvent's ArcGIS Server.&lt;/P&gt;&lt;P&gt;2. The proxy server may not be working as expected.&amp;nbsp; You can verify this using the GeoEvent loggers&amp;nbsp;&lt;STRONG&gt;com.esri.ges.httpclient.Http&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;org.apache.http.wire&lt;/STRONG&gt; set to DEBUG or TRACE. They will create a large volume of data for all communications so it is best to test with just your one output running.&lt;/P&gt;&lt;P&gt;3. Check the media type property in your output. Default is&amp;nbsp;application/json, so you might check that the other end is expecting that.&lt;/P&gt;&lt;P&gt;Another test you might run is to have the GeoEvent output write to another GeoEvent HTTP/JSON input.&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 21:37:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/push-json-to-external-website-not-working/m-p/1053449#M3526</guid>
      <dc:creator>EricIronside</dc:creator>
      <dc:date>2021-04-30T21:37:45Z</dc:date>
    </item>
  </channel>
</rss>

