-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Labels
internally-reviewedInternally reviewedInternally reviewed
Description
When doing a multipart file upload, and requesting data from multiple subgraphs I get the following errors:
open C:\Users\RPOPOV~1\AppData\Local\Temp\multipart-3224054384: The system cannot find the file specified.
Failed to fetch from Subgraph 'hcm-subgraph' at Path: 'executeHolidayRequestAction.document.replacementPerson'.
open C:\Users\RPOPOV~1\AppData\Local\Temp\multipart-3224054384: The system cannot find the file specified.
Failed to fetch from Subgraph 'hcm-subgraph' at Path: 'executeHolidayRequestAction.document.actions'.
open C:\Users\RPOPOV~1\AppData\Local\Temp\multipart-3224054384: The system cannot find the file specified.
Failed to fetch from Subgraph 'hcm-subgraph' at Path: 'executeHolidayRequestAction.document.workflowInstance'.
The mutation is executed successfully but other fetches from other subgraphs are never executed due to the errors above.
At this line temp files get deleted:
if err = os.Remove(file.Name()); err != nil { |
Afterwards, at this line the files are loaded foreach subgraph involved in the federated response:
graphql-go-tools/v2/pkg/engine/resolve/loader.go
Line 1547 in a9be0ae
return source.LoadWithFiles(ctx, input, l.ctx.Files, res.out) |
Maybe should clear the ctx.Files too when deleting the temp files, like: l.ctx.Files = nil
Metadata
Metadata
Assignees
Labels
internally-reviewedInternally reviewedInternally reviewed