LargeFileUploadTask.upload throws PassThrough.
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 30/100
- Tipo de issue
- Bug
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Estagnada
- Stack de tecnologia
- node.js, typescript
- Domínio
- api
Direção de pesquisa
Start with LargeFileUploadTask.upload, the FileUpload construction, and createUploadSession call shown in the report; reproduce the intermittent failure with Node 20 and the 30 one-megabyte OneDrive uploads. Done means identifying why PassThrough is surfaced and documenting or fixing prevention or handling, with the behavior verified against the supplied scenario.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Describe the bug
When uploading 30 1MB files to OneDrive, LargeFileUploadTask.upload occasionally (about once in 5 times) throws PassThrough.
Expected behavior
I want to know how to prevent PassThrough from being thrown. Or, I want to know how to handle PassThrough when it is caught.
How to reproduce
The src is as follows:
const uploadSession = await LargeFileUploadTask.createUploadSession(
graphClient,
uploadSessionUrl,
{
item: {
'@microsoft.graph.conflictBehavior': 'rename',
name: filename,
},
},
);
const fileUpload = new FileUpload(
fileContent,
filename,
fileContent.length,
);
const uploadTask = new LargeFileUploadTask(graphClient, fileUpload, uploadSession, {
rangeSize: 1048576,
});
try {
const uploadResult = await uploadTask.upload();
return uploadResult?.responseBody
? (uploadResult.responseBody as DriveItem)
: null;
} catch (e) {
this.logger.error({
message: e.constructor?.name+' '+JSON.stringify(e),
});
throw e;
}
SDK Version
3.0.7
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
``` PassThrough { "_events": {}, "_readableState": { "highWaterMark": 16384, "buffer": [ { "type": "Buffer", "data": [・・・] } ], "bufferIndex": 0, "length": 8062, "pipes": [], "awaitDrainWriters": null }, "_writableState": { "highWaterMark": 16384, "length": 0, "corked": 0, "writelen": 0, "bufferedIndex": 0, "pendingcb": 0 }, "allowHalfOpen": true, "_eventsCount": 2 } ```Configuration
- node:20-alpine3.19
- node.version v20.18.0
Other information
No response
- Linguagem predominante
- TypeScript
- Estrelas
- 836
- Forks
- 240
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
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 microsoftgraph/msgraph-sdk-javascript
-
status:waiting-for-triage
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 62/100
-
Is anyone here?Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
microsoftgraph/msgraph-sdk-javascript#2005 · 1 reação ·
-
Is it really correct that the Javascript version of the graph SDK doesn't offer typed requests?Abertastatus:waiting-for-triage
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 42/100
-
status:waiting-for-triage type:bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 48/100
microsoftgraph/msgraph-sdk-javascript#1999 · 2 comentários · 1 reação ·
-
status:waiting-for-triage type:bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
Todas as issues de microsoftgraph/msgraph-sdk-javascript
Issues semelhantes
-
level/task reporter/qa type/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
wazuh/wazuh-dashboard-plugins#9310 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
cybersemics/treecrdt#267 ·
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 85/100
wiz-sec-public/backstage-plugin-wiz#16 · 1 comentário ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
solana-foundation/solana-com#2245 ·
Mantenedores costumam responder em até 1 dia