dart-lang / pub

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

Tried calling: readEventsEnabled=false #2248

Open LongXiangGuo opened 4 years ago

LongXiangGuo commented 4 years ago

Looks great! Are you ready to upload your package (y/n)? y Pub needs your authorization to upload packages on your behalf. In a web browser, go to https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=force&response_type=code&client_id=818368855108-8grd2eg9tj9f38os6f1urbcvsq399u8n.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A58496&scope=openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email Then click "Allow access".

Waiting for your authorization... ^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[C^[[CAuthorization received, processing... The setter 'readEventsEnabled=' was called on null. Receiver: null Tried calling: readEventsEnabled=false package:http/src/io_client.dart 33:23 IOClient.send ===== asynchronous gap =========================== package:pub/src/http.dart 68:39 _PubHttpClient.send ===== asynchronous gap =========================== package:http_retry/http_retry.dart 97:33 RetryClient.send ===== asynchronous gap =========================== package:pub/src/http.dart 194:43 _ThrowingClient.send ===== asynchronous gap =========================== package:http_throttle/http_throttle.dart 33:31 ThrottleClient.send ===== asynchronous gap =========================== package:http/src/base_client.dart 169:38 BaseClient._sendUnstreamed ===== asynchronous gap =========================== package:http/src/base_client.dart 54:7 BaseClient.post package:oauth2/src/authorization_code_grant.dart 282:38 AuthorizationCodeGrant._handleAuthorizationCode ===== asynchronous gap =========================== package:oauth2/src/authorization_code_grant.dart 231:18 AuthorizationCodeGrant.handleAuthorizationResponse ===== asynchronous gap =========================== package:pub/src/oauth2.dart 208:17 _authorize.. package:shelf/shelf_io.dart 88:29 handleRequest ===== asynchronous gap =========================== package:shelf/shelf_io.dart 64:34 serveRequests.. This is an unexpected error. Please run

pub --trace publish

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

LongXiangGuo commented 4 years ago

When use lantern pub the flutter packages, it aways report this error while authorization completion.

medz commented 4 years ago

When use lantern pub the flutter packages, it aways report this error while authorization completion.

I also encountered the same situation!😫