Hello, I'm trying to track down a 405 error while using libcurl/C++ to do a post request to the ArcGIS Earth automation api. I'm wondering if there is any real time logging done by AGEarth. The only logging I see hasn't been written to since I installed AGEarth last month which is here:
C:\Users\user.name\AppData\Roaming\Esri\ArcGISEarth\logs\ArcGISEarth1.11.log
BTW: I am able to do get request without incident. Whenever I try to post anything I get the dreaded 405 error.
ie. request is http://localhost:8000/arcgisearth/camera
body is {"position":{"x":69.199685, "y":34.547899, "z":5779.406081}, "spatialReference": {"wkid": 4326}},"heading":0.017549, "tilt":0.000000,"roll":0.000000}
header is: "Content-Type:application/json"
Return code of 405:
httpPost(): Bad http return code: 405 returned from httpPost request, result header: HTTP/1.1 405 Method Not Allowed
Date: Mon, 22 Mar 2021 15:44:14 GMT
Content-Type: text/plain
Server: Kestrel
Transfer-Encoding: chunked
Allow: GET, PUT