You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report! I haven't seen this before, it looks like Shopify is returning a completely empty error response rather than a message that could be decoded. I've just pushed a fix with v2.0.1 that should prevent this ArgumentNullException and make the lib throw a ShopifyException instead. That will at least tell you the response received from Shopify.
As for why you're getting an error from Shopify when trying to list pages, I'm not really sure. I re-ran the tests for the ShopifyPageService and they're all passing, so it might help if you load up Fiddler to see what might be going on with your shop.
Edit: Some quick guesses as to why you might be getting an empty response. These are just off the top of my head, there could very well be something else going on:
[ArgumentNullException: Array cannot be null.
Parameter name: bytes]
System.Text.Encoding.GetString(Byte[] bytes) +11445618
ShopifySharp.RequestEngine.CheckResponseExceptions(IRestResponse response) +242
ShopifySharp.d__4`1.MoveNext() +471
Code is:
var pages = await new ShopifyPageService(AuthState.ShopName, AuthState.AccessToken).ListAsync();
The text was updated successfully, but these errors were encountered: