豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 1.1 KB

File metadata and controls

15 lines (10 loc) · 1.1 KB

When you run the push command, you sometimes encounter an error. For instance, you might get an error in the following situations:

  • Your API key is invalid or expired.
  • You try to publish a package that has an identifier that already exists on the host.
  • You make changes to a published package, but you forget to update the version number before you try to publish it again.

The error message typically indicates the source of the problem.

For example, suppose the identifier Contoso.App.Logger.Test exists on nuget.org. If you try to publish a package with that identifier, you get the following error:

Response status code does not indicate success: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.).

To address this situation, check the scope, expiration date, and value of your API key. If the key is valid, the error indicates that the package identifier already exists on the host. To overcome the problem, change the package identifier to be unique, rebuild the project, re-create the .nupkg file, and retry the push command.