Select to view content in your preferred language

"Unknown operation: GET" + 400 + hresult -2146233088 = 0x80131500

2614
5
01-13-2014 07:55 AM
Labels (1)
VincentDolan
Occasional Contributor
I'm getting the same error "Unknown operation: GET" with two different packages.

The first is an .mpk.  As I try to add a layer to my map, I see an InitializationFailure (code/message/hresult = 400/"Unknown operation: GET"/-2146233088==0x80131500).

The second is a .gpk.  When I try to solve a route, I also get the same code/message/hresult.

Any ideas?  Maybe an option to change when my GIS group creates the packages?

Thanks.
0 Kudos
5 Replies
BKuiper
Frequent Contributor
Use the local server utility (in Programs/ArcGIS Runtime, etc) to enable HTTP debugging of .NET applications and use Fiddler to examine the traffic between your application and ArcGIS Runtime. This should give you more information on what is going wrong.
0 Kudos
VincentDolan
Occasional Contributor
Unfortunately,

  • the runtime debug log shows the request and an immediate response

[INDENT][INDENT]2014-01-14 14:08:55,707  INFO rid=222 'server' GPServer-routing - GET GPServer/Model/solve?returnBarriers=false&returnPolylineBarriers=false&returnPolygonBarriers=false&outSR=102113&stops=%7b%22features%22%3a%5b%7b%22geometry%22%3a%7b%22x%22%3a-8783481.3848701%2c%22y%22%3a4300345.39038312%2c%22spatialReference%22%3a%7b%22wkid%22%3a102113%7d%7d%7d%2c%7b%22geometry%22%3a%7b%22x%22%3a-8783374.32772518%2c%22y%22%3a4300345.39038312%2c%22spatialReference%22%3a%7b%22wkid%22%3a102113%7d%7d%7d%5d%7d&returnDirections=true&returnRoutes=true&returnStops=false&ignoreInvalidLocations=true&preserveFirstStop=true&preserveLastStop=true&useTimeWindows=false&useHierarchy=false&directionsLengthUnits=esriNAUMiles&f=json&

2014-01-14 14:08:55,709  INFO rid=222 'server' GPServer-routing - Request handled.
[/INDENT][/INDENT]

  • Fiddler shows the server HTTP response is a 200 response, while the response content contains the error 400 from the runtime:

[INDENT][INDENT]HTTP/1.1 200 OK
Content-Length: 91
Connection: Keep-Alive
Content-Type: text/plain; charset=utf-8

{"error":{"code":400,"details":[],"message":"Unknown operation: GET GPServer/Model/solve"}}
[/INDENT][/INDENT]



I've tried, using Fiddler, to change the GET to a POST and I then see "Unknown operation: POST".

Any other ideas?
0 Kudos
BKuiper
Frequent Contributor
Interesting problem. I would try to see if all your services have started correctly. You can use the following code to open the Runtime webservices page when your application is running. (assuming you have a default browser selected)


            if (LocalServer.IsRunning)
            {
                Thread t = new Thread(new ThreadStart(() =>
                {
                    Process.Start(LocalServer.Url);
                }));
                t.Start();
            }


You can also open up the admin page, although it won't give you that much more information by doing the following

            if (LocalServer.IsRunning)
            {
                Thread t = new Thread(new ThreadStart(() =>
                {
                    Process.Start(LocalServer.Url.Replace("services", "admin"));
                }));
                t.Start();
            }


It is hard to gauge what is going wrong for you. I would stick by getting the MPK working first. Have you tried running the example application that is provided as a VS2010 template?
0 Kudos
MichaelBranscomb
Esri Frequent Contributor
Hi,

Bjorn's suggestion is a good one - ensure the services have started successfully.

Please could you post the code you are using to start the services and then execute the tasks?

Cheers

Mike
0 Kudos
VincentDolan
Occasional Contributor
Good suggestions, guys, thanks!  Here is what was wrong-

map InitializationFailure "Unknown Operation: GET"/400 was due to me both using an incorrect URL and the fact that I had not spun-up a LocalGeometryService.  I now spin-up that service first.

Routing exception "Unknown Operation: GET"/400 was due to a bug in my code that was causing the URL to be ".../solve..." (which would have been appropriate for NA) when it should have been ".../jobs..." (appropriate for our Geoprocessing package).

Thanks for the help!
0 Kudos