patrol_cli ClientException with SocketException: Operation timed out #2499
Labels
package: patrol_cli
Related to the patrol_cli package
waiting for response
Waiting for user's response
Steps to reproduce
I want to create a simple integration test. But when I run
patrol test -t integration_test/example_test.dart
occur an error.The error is :
ClientException with SocketException: Operation timed out (OS Error: Operation timed out, errno = 60), address = pub.dev, port = 52158, uri=https://pub.dev/api/packages/patrol_cli
I found the package pub_updater.The source code is _defaultBaseUrl = 'https://pub.dev'.
And the patrol_cli use final pubUpdater = PubUpdater(). it mean patrol_cli cannot use custom baseUrl for PubUpdater().
The 'https://pub.dev' is not accessible in my country, Could help me please?
It is possible patrol_cli read pubHostedUrl from the environment value PUB_HOSTED_URL. And Pass it to PubUpdater ?
Such as :
patrol_cli: patrol_command_runner.dart new source code like that:
patrol_cli: patrol_command_runner.dart origin source code:
pub_updater : pub_updater.dart source code :
Actual results
run
patrol test -t integration_test/example_test.dart
occur an error.The error is :
ClientException with SocketException: Operation timed out (OS Error: Operation timed out, errno = 60), address = pub.dev, port = 52158, uri=https://pub.dev/api/packages/patrol_cli
#0 IOClient.send (package:http/src/io_client.dart:154:7)
#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93:32)
#2 _withClient (package:http/http.dart:167:12)
#3 PubUpdater._getPackageInfo (package:pub_updater/src/pub_updater.dart:87:22)
#4 PubUpdater.getLatestVersion (package:pub_updater/src/pub_updater.dart:57:25)
#5 PatrolCommandRunner._checkForUpdate (package:patrol_cli/src/runner/patrol_command_runner.dart:413:27)
#6 PatrolCommandRunner.runCommand (package:patrol_cli/src/runner/patrol_command_runner.dart:340:7)
#7 PatrolCommandRunner.run (package:patrol_cli/src/runner/patrol_command_runner.dart:292:18)
#8 patrolCommandRunner (package:patrol_cli/src/runner/patrol_command_runner.dart:70:20)
Logs
Logs
Patrol version
patrol: ^3.7.1
Patrol Doctor output
Patrol Doctor output
Flutter Doctor output
Flutter Doctor output
The text was updated successfully, but these errors were encountered: