rayrutjes / wc-order-search-admin

đź’µ Search for WooCommerce orders in the admin at the speed of thought with Algolia.

Home Page:https://wordpress.org/plugins/wc-order-search-admin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Indexing Not Working

nomaddave opened this issue · comments

Hi. Just installed the plugin and setup an account in Algolia. Set the ID and API keys in the plugin and clicked on "Re-Index Orders". I expected it to successfully index but it failed giving a very non-descriptive error massage.

I then checked the Algolia account and the wc_orders index was created so I assume the credentials worked but not knowing what else to do I reset the credentials in Algolia and copied them to the plugin settings and saved them. Tried to "Re-Index Orders" again and still the same error.

As a next step I deactivated and deleted the plugin hoping that would help. Unfortunately it did not. So at this point I am stuck. I am attaching screenshots from both the plugin settings page and the Algolia log file showing both a "post" and "get" transaction.

I hope you can help me get this working.

Thanks!
Dave
Get Details -Headers
Get Details -Request Body
Post Details - Response Body
Post Details -Headers
Post Details -Request Body
Algolia Indices Page - wc_orders Created
API Keys Settings in Algolia
Error Message on Indexing
Get Details - Response Body

Thank you for the very detailed issue.
It seems like most of the 403 errors you shared are happening when you browse the Algolia dashboard.

This plugin does not control how the dashboard behaves.

However, that being said, it seems like you never managed to send over a single order. This might be specific to your website. I think it does not manage to list the orders.

Could you maybe list the plugins you have enabled so I can reproduce when I have some time?

Hi again, Raymond. So in my staging environment I changed my theme to a very basic one, I deactivated all but the very essential plugins (Woocommerce), and installed your plugin. I created a completely new account Algolia account to start fresh, copied the credentials and ran Re-Index. I got the exact same error response. In Algolia I can see the attempt to access it from the API. An index was create (just as before) so the credentials at some level must be working. This time I am sending you logs from the Algolia system as well as the "Indices/Configuration" screen. In the configuration screen the attributes match exactly the API Call Detail - Request Body (which since it is the "request" I assume it is what your plugin is sending). However, if you look at the bottom of the configuration screen (image included) it says "We couldn't find the attribute id in a small sample of your records; there might be a typo." So as a debugging step I tried deleting the "ID" attribute in the configuration. When doing that the message at the bottom simply changed to say "We couldn't find the attribute number in a small sample of your records; there might be a typo." So something is not right. Also included a list of the plugins still active while testing.

I hope this additional information will be helpful to you.
API Call Detail - Request Body 3
API Call Detail - Request Body 2
API Call Detail - Request Body 1
Searchable Attributes 2
Searchable Attributes 1
API Call Detail - Header
API Call Detail - Response Body 1
Plugins