0
votes
  • 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?
1
See this Shopify Forum discussion: How can I see exact Errors via API testingjdigital
Thanks jdigital. If you want points, put this as an answerChris Halcrow

1 Answers

0
votes

Try adding a Content-Type header set to application/json