-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't workingfluentcart-mcpFluentCart MCP ServerFluentCart MCP ServerupstreamFluentCart upstream bug — cannot fix from MCP sideFluentCart upstream bug — cannot fix from MCP side
Description
Summary
The customer address select endpoint crashes when called via the REST API. It attempts to assign a property on a null object.
Reproduction
curl -s -u "admin:APP_PASSWORD" \
"https://your-site.com/wp-json/fluent-cart/v2/customers/1/update-address-select"Response: {"message":"Attempt to assign property \"checkout_data\" on null"} (HTTP 500)
Root Cause
The endpoint is designed for frontend sessions (cookie auth) where checkout session data exists. When called via REST API (Basic auth), the checkout session is null, causing the property assignment to crash.
Affected Version
FluentCart 1.3.9
Workaround
Use customer_addresses to get all addresses for a customer and filter client-side.
MCP Impact
fluentcart_customer_address_select tool documents this limitation. Users are directed to customer_addresses instead.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfluentcart-mcpFluentCart MCP ServerFluentCart MCP ServerupstreamFluentCart upstream bug — cannot fix from MCP sideFluentCart upstream bug — cannot fix from MCP side