No `AbortSignal` support in many functions - causing hanging requests on client and server
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 55/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- javascript, node.js, typescript
- Domínio
- authentication, backend
Direção de pesquisa
Start by locating the implementations of clerk.session.getToken() and clerk.authenticateRequest, then trace their internal fetch and handshake calls. Check how those entry points handle timeouts and retries; done means callers can pass an external abort signal that controls the request. The issue names no files or tests, so first identify the relevant packages and existing coverage.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Preliminary Checks
-
I have reviewed the documentation: https://clerk.com/docs
-
I have searched for existing issues: https://github.com/clerk/javascript/issues
-
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
-
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
n/a
Publishable key
n/a
Description
Steps to reproduce:
- Use an API like
clerk.session.getToken()(e.g. on the client) orclerk.authenticateRequest(on the server) - Hit a bad spot with the Clerk servers (they tend to come in waves), to catch an overloaded server.
- Have a request hanging and never end
Expected behavior:
Have a way to pass in an external abort signal, so the timeout and retry behavior can be controlled from the outside.
Actual behavior:
We've had this happen on both, our servers - where we ran into execution timeout limits as the request never resolved even after a minute -, as well as the client (where we ultimately never sent of a crucial API request, because the Clerk SDK was still waiting on the Clerk server, but that request was never finished).
Here's a graph showing the maximum time of all clerk.authenticateRequest calls (from around 1,083,609 calls in total) - on an AWS server talking to Clerk:
As a 'quick fix', we had to wrap a custom timeout around the call, but the internal fetch() just keeps being open, and only gets freed when our server gets rotated (which may take 1-2 hours).
On a related note; According to the documentation, the clerk.authenticateRequest call does "no network requests" when you provide a JWT public key up-front, but that's not true - it still does an internal handshake call to the Clerk API, so this is not the JWT public key lookup hanging.
Environment
n/a
- Linguagem predominante
- TypeScript
- Estrelas
- 1.8k
- Forks
- 483
- Merge médio
- 1d 23h
- PRs com merge (30d)
- 325
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de clerk/javascript
-
ClerkAPIError drops meta.lockout_expires_in_seconds from user_locked errorsTalvez já em andamento @umeraamir69 assumiu há 5 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
clerk/javascript#10026 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
@clerk/nextjs: onBeforeSetActive never settles when invalidateCacheAction rejects (e.g. after a redeploy), so setActive and signOut hang foreverTalvez já em andamento @RaphaelFakhri assumiu há 21 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
clerk/javascript#9987 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
needs-triage
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 44/100
clerk/javascript#10413 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dev instances: clerk-js rewrites __clerk_db_jwt non-atomically, concurrent requests fail with dev-browser-missingTalvez já em andamento @umeraamir69 assumiu há 3 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
clerk/javascript#10411 ·
Mantenedores costumam responder em até 1 dia
-
API key verification forwards client User-Agent, causing Python urllib requests to failTalvez já em andamento @umeraamir69 assumiu há 5 dias. Abertaneeds-triage
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 25/100
clerk/javascript#10352 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de clerk/javascript
Issues semelhantes
-
area: server priority: P3 type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
appandflow/stim#4538 ·
Mantenedores costumam responder em até 1 dia
-
[BUG] Published Docker images lack the redis extra: HEADROOM_COMPRESS_SESSION_STORE stops startupTalvez já em andamento @AlessandroSpallina assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
headroomlabs-ai/headroom#4513 ·
Mantenedores costumam responder em até 1 dia
-
bug extension extension: obsidian platform: Windows
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
raycast/extensions#32838 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
copy design-review mac P3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
tosunlab/hisarapp-core#510 ·
-
bug priority-medium to-agent
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia