This project is read-only.

Receiving 500 errors [on the server demo] when invoking actions

Jul 3, 2012 at 4:31 AM

When trying to invoke actions on the AdventureWorks model (on your demo server) I'm getting HTTP status 500 errors. I can GET the homepage, version and services resources and then drill down into the services and their individual action representations but when I request the invoke link I get a 500 error and no response body.

Two examples (tested in REST Console on Chrome):

GET http://<demo_url>/services/AdventureWorksModel.OrderRepository/actions/OrdersInProcess/invoke

POST http://<demo_url>/services/AdventureWorksModel.CustomerRepository/actions/RandomIndividual/invoke

Am I forgetting to include something with my request?

Adam Howard 

Jul 3, 2012 at 8:06 AM

I've noticed some 500's coming back while I'm building my client. Even if the request is malformed you should get an informative error rather than a 500 so I'm looking at it as a priority.

Jul 3, 2012 at 10:14 AM

OK the problem with the invokes was caused by a mistake in the SQL Server config on the server. That should now be fixed. The 500 was correct but ideally would have included a stack trace or more informative error (would have saved me a bit of head scratching anyway) - I'll raise a ticket on that.

I also spotted a problem where if the incoming json contains a scalar value when a reference is expected, it fails with 500 rather than 422. That's fixed and I'll push out a new package and update the demo later this morning. 


Jul 3, 2012 at 3:41 PM

Great. Thank you. It's working now.