botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Node.js SDK, Azure Bot Service] Failed to download bot code from Azure Portal

Open genloz opened this issue 8 years ago • 17 comments

Bot Info

  • SDK Platform: Node.js
  • SDK Version: 3
  • Deployment Environment: Azure Bot Service

Issue Description

Unable to download the sample source code zip. The error is: File download error Failed to dynamically fetch target download uri.

Code Example

n/a unable to get to the code

Reproduction Steps

  1. Login to the Azure Portal and select the App
  2. Click Build
  3. Click Download Zip File

Expected Behavior

Code downloads

Actual Results

Error message above

genloz avatar May 18 '18 11:05 genloz

We couldn't reproduce the issue. Can you please let us know the App Name and try if the issue persists for your other Apps too so that we can investigate further.

fanidamj-zz avatar May 18 '18 21:05 fanidamj-zz

The app name is ITInnovationBot The issue is persisting, I can't download any of the code or access the code editor.

If I look at F12 Developer Resources - Network when clicking the link, the following links have 403 errors:

https://itinnovationbot.scm.azurewebsites.net/api/vfs/site/wwwroot/PostDeployScripts/prepareSrc.cmd

https://management.azure.com/subscriptions/........../resourceGroups/ITInnovationBot/providers/Microsoft.Web/sites/itinnovationbot/config/publishingcredentials/list?api-version=2016-08-01

genloz avatar May 23 '18 14:05 genloz

@genloz sorry about the inconvenience. Can you please try downloading from Kudu? In the meantime we'll look at the logs.

  • open kudu via https://itinnovationbot.scm.azurewebsites.net/DebugConsole
  • click on site
  • click the download icon next to wwwroot Hope this helps Andrea

Andrea-Orimoto avatar May 25 '18 19:05 Andrea-Orimoto

@genloz Can you please confirm if the issue still persists?

fanidamj-zz avatar Jun 11 '18 21:06 fanidamj-zz

I also ran into this issue tonight. Here is my bot URL: https://buzibot.azurewebsites.net/api/messages

shelwig avatar Jun 12 '18 02:06 shelwig

@shelwig Have you tried the above steps mentioned by Andrea?

fanidamj-zz avatar Jun 17 '18 21:06 fanidamj-zz

@fanidamj I am experiencing the same issue, unable to download any of the code from the build page for a new bot service. "Failed to download the file. Error details: error 404 Not Found". I have downloaded the code from the DebugConsole page as described above however.

GeorgeKouk avatar Jun 20 '18 10:06 GeorgeKouk

I meet the same problem. Suddenly I could not open the Open online code editor and could not Download zip file. I don't know why these happened. Here is my bot URL: https://exonetworkfaqbotv1.azurewebsites.net/api/messages

libihan avatar Jul 24 '18 08:07 libihan

@libihan have you tried signing into an incognito window ?

EricDahlvang avatar Jul 24 '18 21:07 EricDahlvang

@EricDahlvang Hello, the problem has been repaired. At that time, when I clicked "Open online code", the website was redirected to another url, then it shows that "You are unauthorized". When I click "Download zip file", it shows that "Failed to dynamically fetch target download uri.". However, in the evening(On July 4, 2018, at 5 pm - Beijing) I can open the Open online code editor and download zip file sucessfully ~ I don't know why these happened. Maybe the server is being repaired

libihan avatar Jul 25 '18 06:07 libihan

Hi @shelwig, @GeorgeKouk, @libihan, are yous still experiencing issues in downloading? If so, please try restarting the app service and then attempting a download.

stevkan avatar Aug 06 '18 21:08 stevkan

Hello, @stevka. I can download the code successfully~ Just in a few hours in the past, the problem occured. Thanks~

libihan avatar Aug 07 '18 01:08 libihan

Closing as resolved.

stevkan avatar Aug 21 '18 11:08 stevkan

Happening to me right now... "Failed to dynamically fetch target download uri."

hubert17 avatar Oct 05 '18 18:10 hubert17

I am also facing same issue. I created a Bot using V4 (C#). -> When I try to download the bot source code -> It gives option to download bot source code, when i click button -> Got " File download error " Please suggest.

manoj1201 avatar Jan 20 '19 11:01 manoj1201

I'm having the same issue. I created a WebBotService and when I will download the code, appear the message "error 404 Not Found".

vitorquezada avatar Mar 29 '19 02:03 vitorquezada

@vitorquezada This is a closed issue. If you are still having this problem, please open a new issue on the Services repository: https://github.com/Microsoft/BotFramework-Services

EricDahlvang avatar Apr 01 '19 17:04 EricDahlvang