Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add timeout handler on FE #3537

Merged
merged 11 commits into from
Aug 26, 2024
Merged

feat: add timeout handler on FE #3537

merged 11 commits into from
Aug 26, 2024

Commits on Aug 23, 2024

  1. ✨ (frontend): Add TimeoutErrorComponent to handle timeout errors in A…

    …PI requests
    
    🔧 (frontend): Add healthCheckTimeout state and setHealthCheckTimeout function to utilityStore for managing timeout errors in API requests
    Cristhianzl committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    a6ffa7e View commit details
    Browse the repository at this point in the history
  2. 📝 (constants.ts): add constants for server health check intervals to …

    …improve code readability and maintainability
    
    🐛 (use-get-health.ts): fix refetch interval value to use the newly added constant REFETCH_SERVER_HEALTH_INTERVAL for consistency and easier maintenance
    Cristhianzl committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    76debc7 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. 📝 (api.tsx): Add utilityStore import to improve code organization

    📝 (api.tsx): Add createNewError503 function to handle custom 503 errors
    📝 (api.tsx): Add AxiosError import for type checking
    📝 (api.tsx): Refactor error handling logic for authentication errors
    📝 (use-get-health.ts): Add createNewError503 import for custom 503 errors
    📝 (use-get-health.ts): Add AxiosError import for type checking
    📝 (use-get-health.ts): Refactor error handling logic for server busy status
    📝 (index.tsx): Add AxiosError import for type checking
    📝 (index.tsx): Add useEffect and useState imports for state management
    📝 (index.tsx): Refactor error handling logic for server status and retries
    📝 (utilityStore.ts): Add retriesApiRequest state and setRetriesApiRequest function
    📝 (axios-error-503.ts): Create function to generate custom 503 error responses
    📝 (index.ts): Add retriesApiRequest state and setRetriesApiRequest function to UtilityStoreType
    Cristhianzl committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    7abcf45 View commit details
    Browse the repository at this point in the history
  2. 🔧 (utilityStore.ts): remove unused retriesApiRequest and setRetriesAp…

    …iRequest functions to clean up code and improve maintainability
    
    🔧 (index.ts): remove unused retriesApiRequest and setRetriesApiRequest types to keep type definitions consistent and up to date
    Cristhianzl committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    f559432 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d37f0bb View commit details
    Browse the repository at this point in the history
  4. ✨ (nginx.conf): add new health endpoint to proxy_pass requests to the…

    … backend server for health checks
    Cristhianzl committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    aab6e51 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1befecb View commit details
    Browse the repository at this point in the history
  6. ✨ (langflow): Add support for configuring the number of retries for t…

    …he health check feature. This change introduces a new option `health_check_max_retries` that can be set via environment variable or command line argument to control the maximum number of retries for the health check process.
    Cristhianzl committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    f4548e9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    56104c9 View commit details
    Browse the repository at this point in the history
  8. check if value is none

    Cristhianzl committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9ace8b1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ac92dd5 View commit details
    Browse the repository at this point in the history