bug: a new HttpClient is created on every call
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- csharp
- Domain
- authentication
Research direction
Start in packages/Gotrue/Gotrue/StatelessClient.cs at StatelessClient.GetApi and inspect packages/Core/Core/Http/DefaultHttpClientFactory.cs. Compare this flow with the Client constructor in packages/Gotrue/Gotrue/Client.cs, then run the relevant Gotrue tests; done means repeated stateless calls with a proxy no longer create undisposed HttpClient instances.
Written by the indexing model from the issue text.
Description
These create a new HttpClient each time they run, and it is never disposed:
- Storage:
Fromcreates three, with or without a proxy. 200From("bucket").List()calls leave 200 open connections. - Postgrest:
Table<T>creates one whenProxyis set. - Auth:
StatelessClient.GetApicreates one on each stateless call whenProxyis set.
The stateful auth Client creates it once, in its constructor.
- Dominant language
- C#
- Stars
- 702
- Forks
- 106
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 51
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from supabase/supabase-csharp
-
OAuth State Error for social providers since Supabase.Gotrue v6.1.0May be free again @Tr00d claimed this 49 days ago, and no pull request is open. Openbug
supabase/supabase-csharp#377 · 4 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Postgres Changes filters are validated as anon because SetAuth is applied after channel joinMay be free again @Tr00d claimed this 61 days ago, and no pull request is open. Openarea: postgrest bug
supabase/supabase-csharp#345 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
parity(functions): never send new-format API key as Authorization Bearer [from supabase-js]May be free again @Tr00d claimed this 87 days ago, and no pull request is open. Openbug parity
supabase/supabase-csharp#279 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
parity(client): unrecognized sb_ API key subtypes are silently accepted, no warning [from supabase-js]May be free again @Tr00d claimed this 87 days ago, and no pull request is open. Openparity
supabase/supabase-csharp#278 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
parity(realtime): add replication_ready broadcast option and system event payload [from supabase-js]May be free again @Tr00d claimed this 101 days ago, and no pull request is open. Openparity
supabase/supabase-csharp#272 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in supabase/supabase-csharp
Similar issues
-
A numeric literal is parsed in the host's culture, so 1.5 is 15 in a made EXE on a comma-decimal OSOpenbug interpreter silently-wrong small
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
reactiveui/ReactiveUI.Binding.SourceGenerators#176 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
dotnet/csharpstandard#1830 ·
Maintainers usually reply within 1 day
-
c:docs p:high size:S t:docs
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day