BotFramework-Composer icon indicating copy to clipboard operation
BotFramework-Composer copied to clipboard

Problem publishing

Open slymuffhugger opened this issue 5 years ago • 17 comments

Describe the bug

Unable to publish bot to azure using bot composer. It spins indefinitely with no status update and no error in the application... There is only an error in the console.. HTTP status code 431 Request Header Fields Too Large.

I tried using newer nightly build.. but I am also unable to uninstall bot composer.. When I launch the uninstaller it comes with NSIS error

Version

Bot composer V 1.3

Browser

  • [ ] Electron distribution
  • [x] Chrome
  • [ ] Safari
  • [ ] Firefox
  • [ ] Edge

OS

  • [ ] macOS
  • [x] Windows
  • [ ] Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Go to Publish menu within Bot Framework Composer
  2. Click on Publish Bot
  3. Bot is never published
  4. Error is in the console in developer tools

Expected behavior

Expected the bot to be published as an azure web app

Screenshots

image

image

Additional context

slymuffhugger avatar Jan 07 '21 17:01 slymuffhugger

Watching this. New to Bots and the Composer application. I'm receiving same problem, and now looking for a way to downgrade if possible. After many attempts for trying to figure out what I did wrong, I'm seeing this 431 err too.

image

ryan-daly-AgFCS avatar Jan 08 '21 20:01 ryan-daly-AgFCS

Managed to downgrade to 1.2.1 and can successfully publish to Azure. Unfortunate as I really like the features and organization of 1.3 (plus documentation is updated for it too).

ryan-daly-AgFCS avatar Jan 09 '21 03:01 ryan-daly-AgFCS

https://github.com/microsoft/BotFramework-Composer/issues/5335 got fixed. @ryan-daly-AgFCS you can try out latest nightly.

hibrenda avatar Jan 11 '21 08:01 hibrenda

Thanks @hibrenda - I gave that a try, but I'm still receiving the 431 error, then subsequent 404. Composer doesn't update to indicate it is accepted for publishing like 1.2.1 does. It essentially just sits there spinning, and never finishes.

image

ryan-daly-AgFCS avatar Jan 11 '21 14:01 ryan-daly-AgFCS

Here is the results when I uninstalled the nightly, then reinstalled 1.2.1 on the same bot files:

image

ryan-daly-AgFCS avatar Jan 11 '21 15:01 ryan-daly-AgFCS

@hibrenda @luhan2017 Could you follow up please?

GeoffCoxMSFT avatar Jan 12 '21 17:01 GeoffCoxMSFT

We have a similar issue here. FYI. https://github.com/MicrosoftDocs/composer-docs/issues/73#issuecomment-758924520

zxyanliu avatar Jan 12 '21 21:01 zxyanliu

Yes I also tried installing latest nightly and still received the same 431 and 404 errors..

slymuffhugger avatar Jan 12 '21 22:01 slymuffhugger

It seems like the accessToken is too large to set in the http header, @kalebk could you give us your arm token(even an expired one is ok) for testing, so that we can see how large it would be?

VanyLaw avatar Jan 13 '21 03:01 VanyLaw

And there is another issue. frontend should show error when accept 431 or 404 instead of loading, @alanlong9278 could you help to take a look?

VanyLaw avatar Jan 13 '21 03:01 VanyLaw

I don't have access to get it quickly right now, but I see in a previous message that I sent my teammate that it's 9,538 characters. I can try to provide tomorrow if needed

slymuffhugger avatar Jan 13 '21 04:01 slymuffhugger

Sure, I will cover 202, 200, 404, 431, 500 http status in frontend in #5375

alanlong9278 avatar Jan 14 '21 07:01 alanlong9278

You closed the issue but I still see the error on the nightly build df53a98 image

tiagonmas avatar Jan 20 '21 10:01 tiagonmas

Still getting HTTP 431 when publishing image

tiagonmas avatar Jan 20 '21 10:01 tiagonmas

@tiagonmas we just found the change on this PR will not take effect in electron app. could you try to set this environment variable before start the nightly composer build, and try again?

NODE_OPTIONS="--max-http-header-size=16000"

luhan2017 avatar Jan 21 '21 01:01 luhan2017

@luhan2017 it worked with that setting! :)

tiagonmas avatar Jan 21 '21 08:01 tiagonmas

Just want to note for the record that this issue is resolved on my end with version 1.3.1 that was just published a few days ago.

ryan-daly-AgFCS avatar Feb 12 '21 20:02 ryan-daly-AgFCS