File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,23 @@ def request_post_mortem(self, response=None):
114
114
remedy = "Try deleting the cached credentials at %s" % \
115
115
self .auth .creds_store
116
116
117
+ elif 'code' == 'woocommerce_rest_cannot_view' :
118
+ if not self .auth .query_string_auth :
119
+ remedy = "Try enabling query_string_auth"
120
+ else :
121
+ remedy = (
122
+ "This error is super generic and can be caused by just "
123
+ "about anything. Here are some things to try: \n "
124
+ " - Check that the account which as assigned to your "
125
+ "oAuth creds has the correct access level\n "
126
+ " - Enable logging and check for error messages in "
127
+ "wp-content and wp-content/uploads/wc-logs\n "
128
+ " - Check that your query string parameters are valid\n "
129
+ " - Make sure your server is not messing with authentication headers\n "
130
+ " - Try a different endpoint\n "
131
+ " - Try enabling HTTPS and using basic authentication\n "
132
+ )
133
+
117
134
response_headers = {}
118
135
if hasattr (response , 'headers' ):
119
136
response_headers = response .headers
You can’t perform that action at this time.
0 commit comments