Skip to content

Getting UnsupportedHeader code while trying to upload artifact #1910

@divyanshu2601

Description

@divyanshu2601

Describe the bug
Getting UnsupportedHeader code while trying to upload artifact

To Reproduce
Steps to reproduce the behavior:

  1. We noticed UnsupportedHeader error coming in x-ms-error-code in version 2.1.8 @action/artifact

  2. We upgraded @actions/artifact to 2.2.0 in our package.json

  3. We have made call to uploadArtifact(artifactName, files, root directory, {retentionDays} of DefaultArtifactClient of @actions/artifact from our js file.

  4. We observed below behaviour:
    upload-artifact.js makes call to uploadZipToBlobStorage under blob-upload.js where it makes a call to uploadStream method present in storage-blob and error occurs at uploadStream method where error says : RestError: One of the HTTP headers specified in the request is not supported.

  5. When we look at the request header it is as below :
    IMG_20241219_204149

Expected behavior
Requested Artifact Should get uploaded to workflow .

Screenshots
Attached request header in point 5 above.

Response header looks like below :

IMG_20241219_205034

Additional context
My first guess would be if x-ms-version 2025-01-05 is able to support the header being passed from @action/artifact ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions