当我赢得包装时,它向我显示HTTP错误403:禁止

时间:2019-11-28 15:17:59

标签: android http flutter flutter-dependencies dart-pub

我正在Intellij Idea中进行Flutter项目。当我想在pubspec.yaml中添加一个程序包时,它导致以下错误:

HTTP error 403: Forbidden


package:pub/src/http.dart 218:5                 _ThrowingClient.send
===== asynchronous gap ===========================
package:http_throttle/http_throttle.dart 33:31  ThrottleClient.send
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 322:37       BoundHostedSource._download
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 217:13       BoundHostedSource.downloadToSystemCache
===== asynchronous gap ===========================
package:pub/src/entrypoint.dart 374:48          Entrypoint._get.<fn>

===== asynchronous gap ===========================
dart:async                                      runZoned
package:pub/src/http.dart 272:10                withDependencyType
package:pub/src/entrypoint.dart 370:12          Entrypoint._get
dart:async                                      Future.wait
package:pub/src/entrypoint.dart 231:18          Entrypoint.acquireDependencies
dart:async                                      _completeOnAsyncReturn
package:pub/src/solver/version_solver.dart      VersionSolver.solve
dart:async                                      _completeOnAsyncReturn
package:pub/src/solver/version_solver.dart      VersionSolver._result
This is an unexpected error. Please run

pub --trace '--verbosity=warning' get --no-precompile

and include the logs in an issue on https://github.com/dart-lang/pub/issues/new

我尝试使用vpn,没有vpn的话,它们都不起作用。 另外,当我添加一些常见的程序包(例如provider或http)时,它也很好。

这是我的代码:

dependencies:
 flutter:
     sdk: flutter
 flutter_localizations:
     sdk: flutter

 provider: ^3.2.0
 http: ^0.12.0+2
 font_awesome_flutter: ^8.5.0
 flutter_rating_bar: ^3.0.0

我的Flutter SDK版本: flutter_windows_v1.9.1 + hotfix.6-stable_3

能请你帮我吗?

预先感谢

1 个答案:

答案 0 :(得分:0)