Sentinel was forked from Duplicate of Sentinel
Continue chatting to ask questions about or make changes to it.
To configure the generation, complete these steps:
add this feature to the current osint and also make sure to import and include it in the main.py file
I've successfully integrated the comprehensive social intelligence feature into your OSINT platform. The module includes Twitter monitoring, Nigerian news RSS feed monitoring, threat analysis, and real-time alert generation capabilities. The new /social-intel
endpoint is now available in your FastAPI application with full authentication integration and extensive monitoring capabilities for security threats.
I've fixed the ApiError handling issue by adding proper instanceof checks before accessing ApiError-specific properties like status
and detail
. The error was occurring because the code was trying to access these properties on regular Error objects that don't have them, causing the "Class constructor ApiError cannot be invoked without 'new'" runtime error. Now the code properly checks if an error is an ApiError instance before accessing its specific properties.
I've rewritten the ApiError implementation using a function constructor pattern instead of ES6 class syntax to resolve the "Class constructor ApiError cannot be invoked without 'new'" error. This approach is more compatible with different TypeScript configurations and bundlers. I also added a helper function isApiError()
to safely check error types, and updated the components to use this helper instead of instanceof
checks.
I've fixed the "Objects are not valid as a React child" error by converting Error objects to strings before setting them in state or rendering them in JSX. The key changes were adding proper error message extraction using err instanceof Error ? err.message : String(err)
patterns in catch blocks to ensure only string values are stored in error state and rendered in the UI components.
okay now lets add frontend features/ui for the social_intelligence features you implemented in the backend