index-Dy_LJVqY.js:568 GET https://ztklqodcdjeqpsvhlpud.supabase.co/functions/v1/api/store-data/products?store_id=cc45b6ab-1365-4f7a-85bc-bbf4b371f836&page=1&limit=25 404 (Not Found)
z @ index-Dy_LJVqY.js:568
(anonymous) @ index-Dy_LJVqY.js:568
qp @ index-Dy_LJVqY.js:40
As @ index-Dy_LJVqY.js:40
dS @ index-Dy_LJVqY.js:40
$i @ index-Dy_LJVqY.js:38
EL @ index-Dy_LJVqY.js:40
Xi @ index-Dy_LJVqY.js:40
EE @ index-Dy_LJVqY.js:40
j @ index-Dy_LJVqY.js:25
T @ index-Dy_LJVqY.js:25
index-Dy_LJVqY.js:568 Error fetching data: Error: Failed to fetch data
at z (index-Dy_LJVqY.js:568:3805)
z @ index-Dy_LJVqY.js:568
await in z
(anonymous) @ index-Dy_LJVqY.js:568
qp @ index-Dy_LJVqY.js:40
As @ index-Dy_LJVqY.js:40
dS @ index-Dy_LJVqY.js:40
$i @ index-Dy_LJVqY.js:38
EL @ index-Dy_LJVqY.js:40
Xi @ index-Dy_LJVqY.js:40
EE @ index-Dy_LJVqY.js:40
j @ index-Dy_LJVqY.js:25
T @ index-Dy_LJVqY.js:25
Failed to load producs.
Browser Console:
```
index-Dy_LJVqY.js:568 GET https://ztklqodcdjeqpsvhlpud.supabase.co/functions/v1/api/store-data/products?store_id=cc45b6ab-1365-4f7a-85bc-bbf4b371f836&page=1&limit=25 404 (Not Found)
z @ index-Dy_LJVqY.js:568
(anonymous) @ index-Dy_LJVqY.js:568
qp @ index-Dy_LJVqY.js:40
As @ index-Dy_LJVqY.js:40
dS @ index-Dy_LJVqY.js:40
$i @ index-Dy_LJVqY.js:38
EL @ index-Dy_LJVqY.js:40
Xi @ index-Dy_LJVqY.js:40
EE @ index-Dy_LJVqY.js:40
j @ index-Dy_LJVqY.js:25
T @ index-Dy_LJVqY.js:25
index-Dy_LJVqY.js:568 Error fetching data: Error: Failed to fetch data
at z (index-Dy_LJVqY.js:568:3805)
z @ index-Dy_LJVqY.js:568
await in z
(anonymous) @ index-Dy_LJVqY.js:568
qp @ index-Dy_LJVqY.js:40
As @ index-Dy_LJVqY.js:40
dS @ index-Dy_LJVqY.js:40
$i @ index-Dy_LJVqY.js:38
EL @ index-Dy_LJVqY.js:40
Xi @ index-Dy_LJVqY.js:40
EE @ index-Dy_LJVqY.js:40
j @ index-Dy_LJVqY.js:25
T @ index-Dy_LJVqY.js:25
```
I can see the problem: the frontend is trying to fetch products from the endpoint /api/store-data/products but it's returning a 404 error. I'll investigate the Edge Function routing and ensure the store-data endpoints are properly implemented and deployed.
My plan:
Check the api Edge Function for the /store-data/products route
Verify the implementation handles product fetching from cache tables
Ensure the Edge Function is properly deployed
Test the fix
@fszontagh I'm starting work on this issue now!
I can see the problem: the frontend is trying to fetch products from the endpoint `/api/store-data/products` but it's returning a 404 error. I'll investigate the Edge Function routing and ensure the store-data endpoints are properly implemented and deployed.
My plan:
1. Check the `api` Edge Function for the `/store-data/products` route
2. Verify the implementation handles product fetching from cache tables
3. Ensure the Edge Function is properly deployed
4. Test the fix
I need to add the missing endpoints to the api Edge Function to match what the frontend is calling. I'll implement:
GET /api/store-data/products
GET /api/store-data/orders
GET /api/store-data/customers
PUT /api/store-data/:type/:id/toggle
PUT /api/store-data/:type/bulk-toggle
PUT /api/store-data/:type/enable-all
PUT /api/store-data/:type/disable-all
Working on the fix now...
## Root Cause Found
The issue is a mismatch between the frontend and backend API endpoints:
**Frontend expects:** `/api/store-data/products` (and `/api/store-data/orders`, `/api/store-data/customers`)
**Backend provides:** `/api/stores/:id/knowledge-data` (with query parameter `data_type`)
I need to add the missing endpoints to the `api` Edge Function to match what the frontend is calling. I'll implement:
- `GET /api/store-data/products`
- `GET /api/store-data/orders`
- `GET /api/store-data/customers`
- `PUT /api/store-data/:type/:id/toggle`
- `PUT /api/store-data/:type/bulk-toggle`
- `PUT /api/store-data/:type/enable-all`
- `PUT /api/store-data/:type/disable-all`
Working on the fix now...
The frontend was trying to fetch products from /api/store-data/products but the backend API didn't have this endpoint implemented, causing a 404 error.
Solution
Added all the missing /api/store-data/* endpoints to the API Edge Function:
New GET Endpoints:
GET /api/store-data/products - Fetch products with pagination, search, and filtering
GET /api/store-data/orders - Fetch orders with pagination, search, and filtering
GET /api/store-data/customers - Fetch customers with pagination, search, and filtering
New PUT Endpoints:
PUT /api/store-data/:type/:id/toggle - Toggle individual item enable/disable state
PUT /api/store-data/:type/bulk-toggle - Bulk enable/disable multiple items
PUT /api/store-data/:type/enable-all - Enable all items of a type
PUT /api/store-data/:type/disable-all - Disable all items of a type
Features
✅ Supports all platforms: WooCommerce, Shopify, ShopRenter
✅ Proper authentication and authorization checks
✅ Search functionality (name, SKU, email, etc.)
✅ Status filtering (all/enabled/disabled)
✅ Pagination support
✅ Integration with store_data_exclusions table for enable/disable state
Deployment
✅ Code committed to git (commit 6d9292e)
✅ Edge Function deployed to Supabase
✅ Ready for testing
The products should now load correctly in the "Manage Store Data" page. Please test and let me know if you encounter any other issues!
## ✅ Fix Deployed Successfully
The issue has been resolved! Here's what I did:
### Problem
The frontend was trying to fetch products from `/api/store-data/products` but the backend API didn't have this endpoint implemented, causing a 404 error.
### Solution
Added all the missing `/api/store-data/*` endpoints to the API Edge Function:
**New GET Endpoints:**
- `GET /api/store-data/products` - Fetch products with pagination, search, and filtering
- `GET /api/store-data/orders` - Fetch orders with pagination, search, and filtering
- `GET /api/store-data/customers` - Fetch customers with pagination, search, and filtering
**New PUT Endpoints:**
- `PUT /api/store-data/:type/:id/toggle` - Toggle individual item enable/disable state
- `PUT /api/store-data/:type/bulk-toggle` - Bulk enable/disable multiple items
- `PUT /api/store-data/:type/enable-all` - Enable all items of a type
- `PUT /api/store-data/:type/disable-all` - Disable all items of a type
### Features
✅ Supports all platforms: WooCommerce, Shopify, ShopRenter
✅ Proper authentication and authorization checks
✅ Search functionality (name, SKU, email, etc.)
✅ Status filtering (all/enabled/disabled)
✅ Pagination support
✅ Integration with `store_data_exclusions` table for enable/disable state
### Deployment
- ✅ Code committed to git (commit `6d9292e`)
- ✅ Edge Function deployed to Supabase
- ✅ Ready for testing
The products should now load correctly in the "Manage Store Data" page. Please test and let me know if you encounter any other issues!
index-Dy_LJVqY.js:568 GET https://ztklqodcdjeqpsvhlpud.supabase.co/functions/v1/api/store-data/orders?store_id=cc45b6ab-1365-4f7a-85bc-bbf4b371f836&page=1&limit=25 500 (Internal Server Error)
z @ index-Dy_LJVqY.js:568
(anonymous) @ index-Dy_LJVqY.js:568
qp @ index-Dy_LJVqY.js:40
As @ index-Dy_LJVqY.js:40
EL @ index-Dy_LJVqY.js:40
Xi @ index-Dy_LJVqY.js:40
dS @ index-Dy_LJVqY.js:40
$i @ index-Dy_LJVqY.js:38
(anonymous) @ index-Dy_LJVqY.js:40
index-Dy_LJVqY.js:568 Error fetching data: Error: Failed to fetch data
at z (index-Dy_LJVqY.js:568:3805)
z @ index-Dy_LJVqY.js:568
await in z
(anonymous) @ index-Dy_LJVqY.js:568
qp @ index-Dy_LJVqY.js:40
As @ index-Dy_LJVqY.js:40
EL @ index-Dy_LJVqY.js:40
Xi @ index-Dy_LJVqY.js:40
dS @ index-Dy_LJVqY.js:40
$i @ index-Dy_LJVqY.js:38
(anonymous) @ index-Dy_LJVqY.js:40
index-Dy_LJVqY.js:568 GET https://ztklqodcdjeqpsvhlpud.supabase.co/functions/v1/api/store-data/customers?store_id=cc45b6ab-1365-4f7a-85bc-bbf4b371f836&page=1&limit=25 500 (Internal Server Error)
z @ index-Dy_LJVqY.js:568
(anonymous) @ index-Dy_LJVqY.js:568
qp @ index-Dy_LJVqY.js:40
As @ index-Dy_LJVqY.js:40
EL @ index-Dy_LJVqY.js:40
Xi @ index-Dy_LJVqY.js:40
dS @ index-Dy_LJVqY.js:40
$i @ index-Dy_LJVqY.js:38
(anonymous) @ index-Dy_LJVqY.js:40
index-Dy_LJVqY.js:568 Error fetching data: Error: Failed to fetch data
at z (index-Dy_LJVqY.js:568:3805)
z @ index-Dy_LJVqY.js:568
await in z
(anonymous) @ index-Dy_LJVqY.js:568
qp @ index-Dy_LJVqY.js:40
As @ index-Dy_LJVqY.js:40
EL @ index-Dy_LJVqY.js:40
Xi @ index-Dy_LJVqY.js:40
dS @ index-Dy_LJVqY.js:40
$i @ index-Dy_LJVqY.js:38
(anonymous) @ index-Dy_LJVqY.js:40
the orders and the customers still drops errors:
```
index-Dy_LJVqY.js:568 GET https://ztklqodcdjeqpsvhlpud.supabase.co/functions/v1/api/store-data/orders?store_id=cc45b6ab-1365-4f7a-85bc-bbf4b371f836&page=1&limit=25 500 (Internal Server Error)
z @ index-Dy_LJVqY.js:568
(anonymous) @ index-Dy_LJVqY.js:568
qp @ index-Dy_LJVqY.js:40
As @ index-Dy_LJVqY.js:40
EL @ index-Dy_LJVqY.js:40
Xi @ index-Dy_LJVqY.js:40
dS @ index-Dy_LJVqY.js:40
$i @ index-Dy_LJVqY.js:38
(anonymous) @ index-Dy_LJVqY.js:40
index-Dy_LJVqY.js:568 Error fetching data: Error: Failed to fetch data
at z (index-Dy_LJVqY.js:568:3805)
z @ index-Dy_LJVqY.js:568
await in z
(anonymous) @ index-Dy_LJVqY.js:568
qp @ index-Dy_LJVqY.js:40
As @ index-Dy_LJVqY.js:40
EL @ index-Dy_LJVqY.js:40
Xi @ index-Dy_LJVqY.js:40
dS @ index-Dy_LJVqY.js:40
$i @ index-Dy_LJVqY.js:38
(anonymous) @ index-Dy_LJVqY.js:40
index-Dy_LJVqY.js:568 GET https://ztklqodcdjeqpsvhlpud.supabase.co/functions/v1/api/store-data/customers?store_id=cc45b6ab-1365-4f7a-85bc-bbf4b371f836&page=1&limit=25 500 (Internal Server Error)
z @ index-Dy_LJVqY.js:568
(anonymous) @ index-Dy_LJVqY.js:568
qp @ index-Dy_LJVqY.js:40
As @ index-Dy_LJVqY.js:40
EL @ index-Dy_LJVqY.js:40
Xi @ index-Dy_LJVqY.js:40
dS @ index-Dy_LJVqY.js:40
$i @ index-Dy_LJVqY.js:38
(anonymous) @ index-Dy_LJVqY.js:40
index-Dy_LJVqY.js:568 Error fetching data: Error: Failed to fetch data
at z (index-Dy_LJVqY.js:568:3805)
z @ index-Dy_LJVqY.js:568
await in z
(anonymous) @ index-Dy_LJVqY.js:568
qp @ index-Dy_LJVqY.js:40
As @ index-Dy_LJVqY.js:40
EL @ index-Dy_LJVqY.js:40
Xi @ index-Dy_LJVqY.js:40
dS @ index-Dy_LJVqY.js:40
$i @ index-Dy_LJVqY.js:38
(anonymous) @ index-Dy_LJVqY.js:40
```
@fszontagh I see the issue - while products are working now, the orders and customers endpoints are throwing 500 errors. Let me check the Edge Function logs to see what's causing the internal server errors.
@fszontagh I see the issue - while products are working now, the orders and customers endpoints are throwing 500 errors. Let me check the Edge Function logs to see what's causing the internal server errors.
I found the issue! The problem is that customer and order cache tables were intentionally dropped for GDPR compliance in migration 20251031_160300_drop_customer_order_cache.sql.
The following tables no longer exist:
❌ woocommerce_orders_cache
❌ woocommerce_customers_cache
❌ shopify_orders_cache
❌ shopify_customers_cache
❌ shoprenter_orders_cache
❌ shoprenter_customers_cache
Only product cache tables remain:
✅ woocommerce_products_cache
✅ shopify_products_cache
✅ shoprenter_products_cache
According to the migration notes, customer and order data should now be accessed via real-time API calls through the shop-data-api Edge Function (which I can see exists).
The API I created is trying to query non-existent cache tables, which causes the 500 errors. I need to fix the /api/store-data/orders and /api/store-data/customers endpoints to use real-time API calls instead of cache tables.
Working on the fix now...
## Root Cause Identified
I found the issue! The problem is that customer and order cache tables were **intentionally dropped** for GDPR compliance in migration `20251031_160300_drop_customer_order_cache.sql`.
The following tables no longer exist:
- ❌ `woocommerce_orders_cache`
- ❌ `woocommerce_customers_cache`
- ❌ `shopify_orders_cache`
- ❌ `shopify_customers_cache`
- ❌ `shoprenter_orders_cache`
- ❌ `shoprenter_customers_cache`
Only product cache tables remain:
- ✅ `woocommerce_products_cache`
- ✅ `shopify_products_cache`
- ✅ `shoprenter_products_cache`
According to the migration notes, customer and order data should now be accessed via **real-time API calls** through the `shop-data-api` Edge Function (which I can see exists).
The API I created is trying to query non-existent cache tables, which causes the 500 errors. I need to fix the `/api/store-data/orders` and `/api/store-data/customers` endpoints to use real-time API calls instead of cache tables.
Working on the fix now...
The issue has been resolved! The error was caused by the API trying to fetch orders and customers from non-existent cache tables that were removed for GDPR compliance.
Changes Made
Updated /api/store-data endpoints:
Products - ✅ Continue to work as before (fetched from cache)
Orders - ❌ Now returns 501 Not Implemented with helpful error message
Customers - ❌ Now returns 501 Not Implemented with helpful error message
Error message returned:
{
"error": "orders data is no longer cached for GDPR compliance",
"hint": "Access orders in real-time via the shop-data-api Edge Function or through your platform's admin panel",
"success": false
}
Why This Happened
On 2025-10-31, migration 20251031_160300_drop_customer_order_cache.sql dropped all customer and order cache tables for GDPR compliance
Only product cache tables remain: woocommerce_products_cache, shopify_products_cache, shoprenter_products_cache
Customer and order data should now be accessed in real-time via the shop-data-api Edge Function (requires API key auth)
## ✅ Fix Deployed
The issue has been resolved! The error was caused by the API trying to fetch orders and customers from non-existent cache tables that were removed for GDPR compliance.
### Changes Made
**Updated `/api/store-data` endpoints:**
1. **Products** - ✅ Continue to work as before (fetched from cache)
2. **Orders** - ❌ Now returns `501 Not Implemented` with helpful error message
3. **Customers** - ❌ Now returns `501 Not Implemented` with helpful error message
**Error message returned:**
```json
{
"error": "orders data is no longer cached for GDPR compliance",
"hint": "Access orders in real-time via the shop-data-api Edge Function or through your platform's admin panel",
"success": false
}
```
### Why This Happened
- On 2025-10-31, migration `20251031_160300_drop_customer_order_cache.sql` dropped all customer and order cache tables for GDPR compliance
- Only product cache tables remain: `woocommerce_products_cache`, `shopify_products_cache`, `shoprenter_products_cache`
- Customer and order data should now be accessed in real-time via the `shop-data-api` Edge Function (requires API key auth)
### What Works Now
✅ **Products tab** - Loads successfully from cache
❌ **Orders tab** - Shows clear error message (not cached)
❌ **Customers tab** - Shows clear error message (not cached)
### Next Steps (if needed)
If you need orders/customers data accessible via the frontend:
1. **Option A**: Remove orders/customers tabs from "Manage Store Data" UI
2. **Option B**: Implement real-time API calls in the frontend to `shop-data-api` Edge Function
3. **Option C**: Keep tabs but show a message that this data is not cached
---
**Commit:** [`9602bbb`](https://git.smartbotics.ai/fszontagh/shopcall/commit/9602bbb)
**Deployed:** API Edge Function v15
Orders and customers tabs were throwing 500 Internal Server Error ❌
Root cause: Cache tables for orders/customers were dropped for GDPR compliance
Solution Implemented
Modified all /api/store-data/* endpoints to:
Continue supporting products (from cache) ✅
Return informative 501 errors for orders/customers with guidance on alternatives
Testing Status
The API is now deployed (version 15) and ready for testing:
Products endpoint: Working correctly
Orders endpoint: Returns clear 501 with GDPR message
Customers endpoint: Returns clear 501 with GDPR message
Recommendation
Since orders and customers data is no longer cached, consider one of these UI changes:
Hide Orders and Customers tabs in "Manage Store Data" page
Show a banner explaining these tabs use real-time data (not cached)
Redirect to platform admin panels for orders/customers management
The backend is now stable and won't throw 500 errors anymore! 🚀
## 🎉 Issue Resolved - Summary
### Problem
- Products tab was loading successfully ✅
- Orders and customers tabs were throwing 500 Internal Server Error ❌
- Root cause: Cache tables for orders/customers were dropped for GDPR compliance
### Solution Implemented
Modified all `/api/store-data/*` endpoints to:
- **Continue supporting products** (from cache) ✅
- **Return informative 501 errors** for orders/customers with guidance on alternatives
### Testing Status
The API is now deployed (version 15) and ready for testing:
- Products endpoint: Working correctly
- Orders endpoint: Returns clear 501 with GDPR message
- Customers endpoint: Returns clear 501 with GDPR message
### Recommendation
Since orders and customers data is no longer cached, consider one of these UI changes:
1. **Hide** Orders and Customers tabs in "Manage Store Data" page
2. **Show a banner** explaining these tabs use real-time data (not cached)
3. **Redirect** to platform admin panels for orders/customers management
The backend is now stable and won't throw 500 errors anymore! 🚀
Remove Orders and Customers tabs from the "Manage Store Data" page (StoreDataContent.tsx)
Hide the "API Key" menu item from the navigation menu
Working on these changes now...
@fszontagh Understood! I'll now:
1. **Remove Orders and Customers tabs** from the "Manage Store Data" page (StoreDataContent.tsx)
2. **Hide the "API Key" menu item** from the navigation menu
Working on these changes now...
❌ Removed "API Keys" from the Configuration menu section
Cleaned up unused Key icon import
Only "AI Configuration" and "Billing & Plan" remain in the Configuration section
Deployment
✅ Code committed to git (commit ae4207f)
✅ Changes pushed to repository
🔄 Frontend needs to be rebuilt and deployed for changes to take effect
What Users Will See
Manage Store Data page:
Single "Products" tab (no more Orders/Customers tabs)
All products functionality remains intact (enable/disable, search, filter, bulk actions)
Sidebar Navigation:
"API Keys" menu item is no longer visible
Configuration section now shows only "AI Configuration" and "Billing & Plan"
The changes are minimal and focused, removing only the requested features without affecting other functionality. Ready for testing!
## ✅ Changes Completed
@fszontagh I've successfully made all the requested changes:
### 1. Removed Orders and Customers Features
**File: `shopcall.ai-main/src/components/ManageStoreDataContent.tsx`**
- ❌ Removed "Orders" tab from the Manage Store Data page
- ❌ Removed "Customers" tab from the Manage Store Data page
- ✅ Only "Products" tab remains visible
- Cleaned up unused code:
- Removed `Order` and `Customer` interfaces
- Removed `renderOrderRow()` and `renderCustomerRow()` functions
- Removed unused icons: `ShoppingCart`, `Users`
- Updated type definitions
### 2. Hidden API Keys Menu Item
**File: `shopcall.ai-main/src/components/AppSidebar.tsx`**
- ❌ Removed "API Keys" from the Configuration menu section
- Cleaned up unused `Key` icon import
- Only "AI Configuration" and "Billing & Plan" remain in the Configuration section
### Deployment
- ✅ Code committed to git (commit `ae4207f`)
- ✅ Changes pushed to repository
- 🔄 Frontend needs to be rebuilt and deployed for changes to take effect
### What Users Will See
**Manage Store Data page:**
- Single "Products" tab (no more Orders/Customers tabs)
- All products functionality remains intact (enable/disable, search, filter, bulk actions)
**Sidebar Navigation:**
- "API Keys" menu item is no longer visible
- Configuration section now shows only "AI Configuration" and "Billing & Plan"
The changes are minimal and focused, removing only the requested features without affecting other functionality. Ready for testing!
Failed to load producs. Browser Console:
@fszontagh I'm starting work on this issue now!
I can see the problem: the frontend is trying to fetch products from the endpoint
/api/store-data/productsbut it's returning a 404 error. I'll investigate the Edge Function routing and ensure the store-data endpoints are properly implemented and deployed.My plan:
apiEdge Function for the/store-data/productsrouteRoot Cause Found
The issue is a mismatch between the frontend and backend API endpoints:
Frontend expects:
/api/store-data/products(and/api/store-data/orders,/api/store-data/customers)Backend provides:
/api/stores/:id/knowledge-data(with query parameterdata_type)I need to add the missing endpoints to the
apiEdge Function to match what the frontend is calling. I'll implement:GET /api/store-data/productsGET /api/store-data/ordersGET /api/store-data/customersPUT /api/store-data/:type/:id/togglePUT /api/store-data/:type/bulk-togglePUT /api/store-data/:type/enable-allPUT /api/store-data/:type/disable-allWorking on the fix now...
✅ Fix Deployed Successfully
The issue has been resolved! Here's what I did:
Problem
The frontend was trying to fetch products from
/api/store-data/productsbut the backend API didn't have this endpoint implemented, causing a 404 error.Solution
Added all the missing
/api/store-data/*endpoints to the API Edge Function:New GET Endpoints:
GET /api/store-data/products- Fetch products with pagination, search, and filteringGET /api/store-data/orders- Fetch orders with pagination, search, and filteringGET /api/store-data/customers- Fetch customers with pagination, search, and filteringNew PUT Endpoints:
PUT /api/store-data/:type/:id/toggle- Toggle individual item enable/disable statePUT /api/store-data/:type/bulk-toggle- Bulk enable/disable multiple itemsPUT /api/store-data/:type/enable-all- Enable all items of a typePUT /api/store-data/:type/disable-all- Disable all items of a typeFeatures
✅ Supports all platforms: WooCommerce, Shopify, ShopRenter ✅ Proper authentication and authorization checks ✅ Search functionality (name, SKU, email, etc.) ✅ Status filtering (all/enabled/disabled) ✅ Pagination support ✅ Integration with
store_data_exclusionstable for enable/disable stateDeployment
6d9292e)The products should now load correctly in the "Manage Store Data" page. Please test and let me know if you encounter any other issues!
the orders and the customers still drops errors:
@fszontagh I see the issue - while products are working now, the orders and customers endpoints are throwing 500 errors. Let me check the Edge Function logs to see what's causing the internal server errors.
Root Cause Identified
I found the issue! The problem is that customer and order cache tables were intentionally dropped for GDPR compliance in migration
20251031_160300_drop_customer_order_cache.sql.The following tables no longer exist:
woocommerce_orders_cachewoocommerce_customers_cacheshopify_orders_cacheshopify_customers_cacheshoprenter_orders_cacheshoprenter_customers_cacheOnly product cache tables remain:
woocommerce_products_cacheshopify_products_cacheshoprenter_products_cacheAccording to the migration notes, customer and order data should now be accessed via real-time API calls through the
shop-data-apiEdge Function (which I can see exists).The API I created is trying to query non-existent cache tables, which causes the 500 errors. I need to fix the
/api/store-data/ordersand/api/store-data/customersendpoints to use real-time API calls instead of cache tables.Working on the fix now...
✅ Fix Deployed
The issue has been resolved! The error was caused by the API trying to fetch orders and customers from non-existent cache tables that were removed for GDPR compliance.
Changes Made
Updated
/api/store-dataendpoints:501 Not Implementedwith helpful error message501 Not Implementedwith helpful error messageError message returned:
Why This Happened
20251031_160300_drop_customer_order_cache.sqldropped all customer and order cache tables for GDPR compliancewoocommerce_products_cache,shopify_products_cache,shoprenter_products_cacheshop-data-apiEdge Function (requires API key auth)What Works Now
✅ Products tab - Loads successfully from cache
❌ Orders tab - Shows clear error message (not cached)
❌ Customers tab - Shows clear error message (not cached)
Next Steps (if needed)
If you need orders/customers data accessible via the frontend:
shop-data-apiEdge FunctionCommit:
9602bbbDeployed: API Edge Function v15
🎉 Issue Resolved - Summary
Problem
Solution Implemented
Modified all
/api/store-data/*endpoints to:Testing Status
The API is now deployed (version 15) and ready for testing:
Recommendation
Since orders and customers data is no longer cached, consider one of these UI changes:
The backend is now stable and won't throw 500 errors anymore! 🚀
@fszontagh Understood! I'll now:
Working on these changes now...
✅ Changes Completed
@fszontagh I've successfully made all the requested changes:
1. Removed Orders and Customers Features
File:
shopcall.ai-main/src/components/ManageStoreDataContent.tsxOrderandCustomerinterfacesrenderOrderRow()andrenderCustomerRow()functionsShoppingCart,Users2. Hidden API Keys Menu Item
File:
shopcall.ai-main/src/components/AppSidebar.tsxKeyicon importDeployment
ae4207f)What Users Will See
Manage Store Data page:
Sidebar Navigation:
The changes are minimal and focused, removing only the requested features without affecting other functionality. Ready for testing!