Skip to content

Error: The system cannot find the file specified - when multipart file upload and federated response #1162

@oncicaradupopovici

Description

@oncicaradupopovici

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.

Image

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:

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions