简体   繁体   English

无法将包发布到 pub dev

[英]Unable to publish package to pub dev

I have been trying to publish my package on pub dev but I am always receiving this error:我一直在尝试在 pub dev 上发布我的包,但我总是收到此错误:

Connection closed before full header was received
pub finished with exit code 69

I can't figure out what is wrong.我不知道出了什么问题。 I checked with the --dry-run command but there are no errors.我检查了--dry-run命令,但没有错误。

I don't know how to fix this issue please help.我不知道如何解决这个问题请帮助。

Connection closed before full header was received error is an error message that usually occurs due to a disconnection during communication with the pub.dev server. Connection closed before full header was received error 是一条错误消息,通常是由于在与 pub.dev 服务器通信期间断开连接而发生的。 This error may occur when trying to complete the publish operation and the pub command may return exit code 69.尝试完成发布操作时可能会发生此错误,并且 pub 命令可能会返回退出代码 69。

When you encounter this error, you can try the following steps:当您遇到此错误时,您可以尝试以下步骤:

Check your internet connection.检查您的互联网连接。 This error can usually occur due to a weak or broken internet connection.此错误通常是由于 Internet 连接较弱或断开而导致的。 Make sure your internet connection is stable and fast.确保您的互联网连接稳定且快速。

Run the pub command with the --verbose option.使用 --verbose 选项运行 pub 命令。 This option allows the pub command to give more detail as it runs and can help to understand where the error is occurring.此选项允许 pub 命令在运行时提供更多详细信息,并有助于了解错误发生的位置。

Run the publish process with the --dry-run option.使用 --dry-run 选项运行发布过程。 This option does not publish, but shows you how to publish.此选项不发布,但会向您展示如何发布。 This option can help you identify potential errors that may occur while performing the publishing process.此选项可以帮助您识别在执行发布过程时可能发生的潜在错误。

Try publishing again.再次尝试发布。 Sometimes, this error can occur randomly and trying again may fix the problem.有时,此错误可能随机发生,重试可能会解决问题。

If you have tried these steps and your problem is still not resolved, if you share the exact error message when running the pub command and the command line arguments you used while performing the publishing process, I can help you in more detail.如果您已尝试这些步骤但问题仍未解决,如果您分享运行 pub 命令时的确切错误消息以及执行发布过程时使用的命令行参数,我可以更详细地帮助您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何自定义 pub.dev 包并使用它? - how to customize pub.dev package and use it? 将 `package` 分配给 `publisher` 会改变 `dart pub publish` 行为吗? - does assigning a `package` to `publisher` changes `dart pub publish` behavior? 在 pub.dev 上发布新包版本的最快方法是什么? - What is the fastest way to release a new package version on pub.dev? 由于缓存包不适用于 pub.dev 中的 flutter 版本 2,因此如何处理缓存 - How to handle cache since the cache package is not available for flutter version 2 in pub.dev 发布包更新管理 - Pub package update management 我从 pub dev 添加了 audioplayers 0.19.1 包,但是当我运行 pub get 时,我遇到了错误,无法创建链接,我不知道发生了什么 - I add audioplayers 0.19.1 package from pub dev but when I run pub get, I face the Error , Cannot create link, I don't know what happened 如何计算点指示器的横幅/页面数? 我正在使用 pub.dev 上提供的 smooth_page_indicator 包 - How to count the number of banners/pages for dot indicators? I'm using smooth_page_indicator package available on pub.dev Flutter pub 发布上的无限期停顿或错误 66 - Indefinite stall OR Error 66 on flutter pub publish Dart/Flutter Pub - 发布到本地服务器 - Dart/Flutter Pub - publish to lokal Server 在 pana 和 pub.dev 上启用 nnbd 实验 - Enable the nnbd experiment in pana and on pub.dev
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM