Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Conversation

@tonyanziano
Copy link
Contributor

Description

Due to a limitation in the version of NodeJS that Composer runs on (< 13), requests sent to the server are limited to a header size of 8 KB. This limitation was blocking Azure publishing and provisioning requests from the client to the server, which was ultimately preventing publishing from happening in certain cases where the Bearer token received from Azure was larger than 8 KB.

This threshold can be increased manually by starting Composer with the environment variable of NODE_OPTIONS set to "--max-http-header-size=16000".

This fix resolves that issue by embedding the access token in the body of the request from the client to the server, instead of in the Authorization header. This should bypass the limitation and allow Composer's server to make Azure publishing requests on behalf of the client using the provided token.

Task Item

fixes #5650

@tonyanziano tonyanziano changed the title Pass access token for publishing through request body instead of header [fix] Pass access token for publishing through request body instead of header Feb 4, 2021
@tonyanziano tonyanziano changed the title [fix] Pass access token for publishing through request body instead of header fix: Pass access token for publishing through request body instead of header Feb 4, 2021
@coveralls
Copy link

coveralls commented Feb 4, 2021

Coverage Status

Coverage decreased (-0.004%) to 55.09% when pulling 4fab4da on toanzian/fix/header-size into 3637ddb on main.

Copy link
Contributor

@a-b-r-o-w-n a-b-r-o-w-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, but I have 1 question.

@a-b-r-o-w-n a-b-r-o-w-n merged commit 2010f0f into main Feb 5, 2021
@a-b-r-o-w-n a-b-r-o-w-n deleted the toanzian/fix/header-size branch February 5, 2021 17:57
tonyanziano added a commit that referenced this pull request Feb 9, 2021
… header (#5700)

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: Andy Brown <asbrown002@gmail.com>
benbrown pushed a commit to benbrown/BotFramework-Composer that referenced this pull request May 24, 2021
… header (microsoft#5700)

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: Andy Brown <asbrown002@gmail.com>
benbrown pushed a commit that referenced this pull request Jun 11, 2021
… header (#5700)

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: Andy Brown <asbrown002@gmail.com>
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
… header (microsoft#5700)

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Co-authored-by: Andy Brown <asbrown002@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provision Failure Error When Attempting to Create a Publishing Profile

5 participants