OfficeDev / generator-office

Yeoman generator for building Microsoft Office related projects.
https://www.npmjs.com/package/generator-office
MIT License
825 stars 208 forks source link

Unable to download project zip file - Request failed with status code 400 #696

Closed elsamuray7 closed 2 years ago

elsamuray7 commented 2 years ago

Expected behavior

I used the yo office command in order to generate / set up an initial project for an Outlook Add-In (expected behavior should be trivial).

Current behavior

After being navigated through the configuration (project type, script type, etc.) the command fails with the following error:

Unable to download project zip file for "https://github.com/OfficeDev/Office-Addin-TaskPane-JS/archive/yo-office.zip".
Error: Request failed with status code 400

I am sitting behind a corporate network but configured my proxy settings correctly (had problems with npm before because of that - but now its fine). If I follow the link with my browser, I can download and unzip the project without any problems. However, I am not sure whether the command triggers further steps to set up the project after downloading the files from GitHub.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. run yo office
  2. follow the configuration manager
  3. error

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Failure Logs

Please include any relevant log snippets, screenshots or code samples here.

Unable to download project zip file for "https://github.com/OfficeDev/Office-Addin-TaskPane-JS/archive/yo-office.zip".
Error: Request failed with status code 400
millerds commented 2 years ago

The tool is making a simple request to download the zip file from github. Are you able to access github in general?

millerds commented 2 years ago

@elsamuray7 if you are able to access github and specifically that url please let us know.