dart-lang / pub

The pub command line tool
https://dart.dev/tools/pub/cmd
BSD 3-Clause "New" or "Revised" License
1.04k stars 229 forks source link

Authentication error (403) #4089

Open majd415 opened 11 months ago

majd415 commented 11 months ago

C:\Users\majd hamoud\AndroidStudioProjects\waelabohamzahecoomerce>flutter pub get Authentication error (403) package:pub/src/authentication/client.dart 95:5 _AuthenticatedClient._throwAuthException package:pub/src/authentication/client.dart 60:9 _AuthenticatedClient.send ===== asynchronous gap =========================== package:pub/src/authentication/client.dart 133:12 withAuthenticatedClient ===== asynchronous gap =========================== package:pub/src/source/hosted.dart 862:22 HostedSource._download. ===== asynchronous gap =========================== package:pub/src/io.dart 885:12 withTempDir ===== asynchronous gap =========================== package:pub/src/source/hosted.dart 859:5 HostedSource._download ===== asynchronous gap =========================== package:pub/src/source/hosted.dart 669:7 HostedSource.downloadToSystemCache ===== asynchronous gap =========================== package:pub/src/solver/result.dart 86:9 SolveResult.downloadCachedPackages.. ===== asynchronous gap =========================== package:pub/src/solver/result.dart 85:14 SolveResult.downloadCachedPackages. ===== asynchronous gap =========================== package:pub/src/solver/result.dart 82:5 SolveResult.downloadCachedPackages ===== asynchronous gap =========================== package:pub/src/entrypoint.dart 324:7 Entrypoint.acquireDependencies ===== asynchronous gap =========================== package:pub/src/command/get.dart 52:5 GetCommand.runProtected This is an unexpected error. The full log and other details are collected in:

C:\Users\majd hamoud\Downloads\flutternew\flutter\.pub-cache\log\pub_log.txt

Consider creating an issue on https://github.com/dart-lang/pub/issues/new and attaching the relevant parts of that log file. Running "flutter pub get" in waelabohamzahecoomerce... pub get failed (1; and attaching the relevant parts of that log file.)

sigurdm commented 11 months ago

Sounds like your access to pub.dev is being blocked.

For general network restrictions, consider trying the Chinese community mirror: https://docs.flutter.dev/community/china

majd415 commented 2 months ago

thanks pro