Skip to content

setheader not allowed for 'content-length' header parameter. #4060

@nmamidip

Description

@nmamidip

When calling the Azure File Share REST API using a custom connector in Power Automate to create a blank file with the PUT method, the request must include the header Content-Length: 0. However, Power Automate automatically assumes an empty body ({}) and sets Content-Length: 2. This causes the API to reject the request with a 400 Bad Request error. How to overcome this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions