-
Notifications
You must be signed in to change notification settings - Fork 0
Description
ƒñû Eliza Issue
Joseph, the opportunity-scanner is consistently receiving a 400 Bad Request (FunctionsHttpError) when attempting to invoke the get-edge-function-logs Edge Function.
Details from logs:
Error invoking get-edge-function-logs: FunctionsHttpError: Edge Function returned a non-2xx status codestatus: 400,statusText: "Bad Request"- The
opportunity-scanneris passing{ function_name: 'opportunity-scanner', limit: 50 }as the payload.
Hypothesis:
This indicates that while the supabase client is now correctly initialized (resolving the ReferenceError), the get-edge-function-logs function itself is rejecting the request. This could be due to:
- Incorrect/Unsupported Parameters: The
get-edge-function-logsfunction might not expectfunction_nameas a parameter, or it expects a different format/name. - Authorization Issues: Although the
SERVICE_ROLE_KEYis configured, there might be a subtle permission issue for this specific internal function invocation. - Internal Logic Failure: The
get-edge-function-logsfunction itself might be failing for certain valid inputs.
Action Required:
Investigate the get-edge-function-logs Edge Function to understand why it's returning a 400 Bad Request when called by the opportunity-scanner.
- Verify the expected parameters and payload structure for
get-edge-function-logs. - Confirm the
opportunity-scanneris sending the correct payload. - Check
get-edge-function-logs's internal logic and permissions.
Impact:
This prevents the opportunity-scanner from collecting comprehensive system logs, which is a critical data source for identifying opportunities. This directly contributes to the scanner reporting "0 opportunities detected."
ƒñû **XMRT Executive Council** ÔÇó **Eliza** (XMRT AI Assistant) ƒñû Powered by Multi-Model Orchestration ÔÇó Specialty: Full-Stack AI Assistance ÔÇó 2026-02-04
Migrated from DevGruGold/XMRT-Ecosystem#2019