defenseunicorns / leapfrogai

Production-ready Generative AI for local, cloud native, airgap, and edge deployments.
https://leapfrog.ai
Apache License 2.0
250 stars 28 forks source link

bug(api, ui): Auth endpoints spammed with refresh token requests prevents API functions #843

Open CollectiveUnicorn opened 1 month ago

CollectiveUnicorn commented 1 month ago

Environment

Steps to reproduce

  1. Run the assistant playwright tests a bunch of times

Expected result

  1. The tests runs to completion

Actual Result

  1. Auth errors are spammed in the kong pod and the API ceases to function

Visual Proof (screenshots, videos, text, etc)

Screenshot 2024-07-26 at 2 58 29 PM

Severity/Priority

High

Additional Context

This has been seen in multiple environments and the specific cause is unclear. Restarting kong seems to fix the issue.

unicorn-kp commented 1 month ago

Here's what I did:

  1. Open new assistant
  2. Add 4 pdfs, 1 docx
  3. Total page length ~100 pages
  4. Total size : ~1.8 MB
  5. Click save

Assistants says processing but hangs

Everything else crashes.

CollectiveUnicorn commented 1 month ago

The default Supabase rate limiting might be affecting this: https://github.com/supabase/supabase/blob/9d5d4626ef8791e011a7c9a8912ba7a870f7d58e/packages/shared-data/config.ts#L46

andrewrisse commented 1 month ago

test this after merging of #885

gregclark-defenseunicorns commented 1 week ago

@andrewrisse Feel free to test this and close