-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
patrol_cli ClientException with SocketException: Operation timed out #2499
Comments
Hi @HXiaoMing, did you finish patrol setup? Also please attach patrol doctor, to see your patrol_cli version, and make sure that your config is compatibile https://patrol.leancode.co/documentation/compatibility-table. You can also join our discord maybe someone there can help, or have similar problem https://discord.com/invite/ukBK5t4EZg |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
25 similar comments
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
29 similar comments
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
Without additional information, we can't resolve this issue. We're therefore reluctantly going to close it. |
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: