- I'm getting an error when trying to make a json request to a remote Shopify API using HttpWebResponse
- It fails on this line - HttpWebResponse response = (HttpWebResponse)request.GetResponse()
- The error is server returned an error: (422) Unprocessable Entity
- The JSON is well-formed, and the data is correct
- When I check using Fiddler on my local machine, there is no http request being made
- How can I diagnose the issue, or what could be the cause of the error?
Asked
Active
Viewed 104 times
0

Chris Halcrow
- 28,994
- 18
- 176
- 206
-
1For Fiddler, take a look at this SO Article: [Get HTTP requests and responses made using HttpWebRequest/HttpWebResponse to show in Fiddler](http://stackoverflow.com/questions/1470634/get-http-requests-and-responses-made-using-httpwebrequest-httpwebresponse-to-sho) – jdigital Jul 04 '16 at 05:00
-
1See this Shopify Forum discussion: [How can I see exact Errors via API testing](https://ecommerce.shopify.com/c/shopify-apis-and-technology/t/how-can-i-see-exact-errors-via-api-testing-198083) – jdigital Jul 04 '16 at 05:02
-
Thanks jdigital. If you want points, put this as an answer – Chris Halcrow Jul 04 '16 at 05:31