Hello,

I understand that you are getting the following error [1] when deploying to 
App Engine. 

Could you please update your Cloud SDK using the next command [2] , restart 
your Cloud Shell and try again?

- gcloud components update

Best Regards,

Nibrass

============================

[1]: ERROR: gcloud crashed (ValueError): invalid literal for int() with 
base 10

[2]: https://cloud.google.com/sdk/gcloud/reference/components/update
On Thursday, March 11, 2021 at 4:19:03 AM UTC+1 duynhan bui wrote:

>
> @jstsetinin, sorry for late response.
> i have checked gcloud sdk version i am using
> + gcloud version
> Google Cloud SDK 324.0.0
> alpha 2021.01.19
> app-engine-go 1.9.71
> app-engine-java 1.9.84
> app-engine-python 1.9.91
> app-engine-python-extras 1.9.91
>
> i also added verbosity=debug [2] flag. This is what I got
> + gcloud app deploy build/gcloud_staging.yaml --project=project-id --quiet 
> --version=2021121112 --verbosity=debug
> DEBUG: Running [gcloud.app.deploy] with arguments: [--project: 
> "project-id", --quiet: "True", --verbosity: "debug", --version: 
> "2021121112", DEPLOYABLES:1: "['build/gcloud_staging.yaml']"]
> DEBUG: Loading runtimes experiment config from 
> [gs://runtime-builders/experiments.yaml]
> INFO: Reading 
> [<googlecloudsdk.api_lib.storage.storage_util.ObjectReference object at 
> 0x7f39b0084c50>]
> DEBUG: Response content was invalid (invalid literal for int() with base 
> 10: 'c010:101:5476:1c02:2::51]:3128'), retrying
> DEBUG: Retrying request to url 
> https://storage.googleapis.com/storage/v1/b/runtime-builders/o/experiments.yaml?alt=media
>  
> after exception invalid literal for int() with base 10: 
> 'c010:101:5476:1c02:2::51]:3128'
> DEBUG: Response content was invalid (invalid literal for int() with base 
> 10: 'c010:101:5476:1c02:2::51]:3128'), retrying
> DEBUG: Retrying request to url 
> https://storage.googleapis.com/storage/v1/b/runtime-builders/o/experiments.yaml?alt=media
>  
> after exception invalid literal for int() with base 10: 
> 'c010:101:5476:1c02:2::51]:3128'
> DEBUG: Response content was invalid (invalid literal for int() with base 
> 10: 'c010:101:5476:1c02:2::51]:3128'), retrying
> DEBUG: Retrying request to url 
> https://storage.googleapis.com/storage/v1/b/runtime-builders/o/experiments.yaml?alt=media
>  
> after exception invalid literal for int() with base 10: 
> 'c010:101:5476:1c02:2::51]:3128'
> DEBUG: Response content was invalid (invalid literal for int() with base 
> 10: 'c010:101:5476:1c02:2::51]:3128'), retrying
> DEBUG: Retrying request to url 
> https://storage.googleapis.com/storage/v1/b/runtime-builders/o/experiments.yaml?alt=media
>  
> after exception invalid literal for int() with base 10: 
> 'c010:101:5476:1c02:2::51]:3128'
> DEBUG: Response content was invalid (invalid literal for int() with base 
> 10: 'c010:101:5476:1c02:2::51]:3128'), retrying
> DEBUG: Retrying request to url 
> https://storage.googleapis.com/storage/v1/b/runtime-builders/o/experiments.yaml?alt=media
>  
> after exception invalid literal for int() with base 10: 
> 'c010:101:5476:1c02:2::51]:3128'
> DEBUG: Response content was invalid (invalid literal for int() with base 
> 10: 'c010:101:5476:1c02:2::51]:3128'), retrying
> DEBUG: Retrying request to url 
> https://storage.googleapis.com/storage/v1/b/runtime-builders/o/experiments.yaml?alt=media
>  
> after exception invalid literal for int() with base 10: 
> 'c010:101:5476:1c02:2::51]:3128'
> DEBUG: invalid literal for int() with base 10: 
> 'c010:101:5476:1c02:2::51]:3128'
> Traceback (most recent call last):
>   File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", 
> line 982, in Execute
>     resources = calliope_command.Run(cli=self, args=args)
>   File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", 
> line 809, in Run
>     resources = command_instance.Run(args)
>   File "/usr/lib/google-cloud-sdk/lib/surface/app/deploy.py", line 111, in 
> Run
>     self._ServerSideExperimentEnabled()):
>   File "/usr/lib/google-cloud-sdk/lib/surface/app/deploy.py", line 137, in 
> _ServerSideExperimentEnabled
>     runtimes_builder_root)
>   File 
> "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/runtime_builders.py",
>  
> line 518, in LoadFromURI
>     with _Read(uri) as f:
>   File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__
>     return next(self.gen)
>   File 
> "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/runtime_builders.py",
>  
> line 269, in _Read
>     with contextlib.closing(storage_client.ReadObject(object_)) as f:
>   File 
> "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/storage/storage_api.py",
>  
> line 311, in ReadObject
>     self.client.objects.Get(get_req, download=download)
>   File 
> "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/storage/v1/storage_v1_client.py",
>  
> line 1081, in Get
>     download=download)
>   File 
> "/usr/bin/../lib/google-cloud-sdk/lib/third_party/apitools/base/py/base_api.py",
>  
> line 709, in _RunMethod
>     download.InitializeDownload(http_request, client=self.client)
>   File 
> "/usr/bin/../lib/google-cloud-sdk/lib/third_party/apitools/base/py/transfer.py",
>  
> line 320, in InitializeDownload
>     self.bytes_http or http, http_request)
>   File 
> "/usr/bin/../lib/google-cloud-sdk/lib/third_party/apitools/base/py/http_wrapper.py",
>  
> line 350, in MakeRequest
>     check_response_func=check_response_func)
>   File 
> "/usr/bin/../lib/google-cloud-sdk/lib/third_party/apitools/base/py/http_wrapper.py",
>  
> line 400, in _MakeRequestNoRetry
>     redirections=redirections, connection_type=connection_type)
>   File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/transport.py", 
> line 243, in WrappedRequest
>     response = orig_request(*modified_args, **modified_kwargs)
>   File 
> "/usr/bin/../lib/google-cloud-sdk/lib/third_party/google_auth_httplib2/__init__.py",
>  
> line 205, in request
>     **kwargs)
>   File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/transport.py", 
> line 243, in WrappedRequest
>     response = orig_request(*modified_args, **modified_kwargs)
>   File 
> "/usr/bin/../lib/google-cloud-sdk/lib/third_party/httplib2/python3/httplib2/__init__.py",
>  
> line 1808, in request
>     tls_minimum_version=self.tls_minimum_version,
>   File 
> "/usr/bin/../lib/google-cloud-sdk/lib/third_party/httplib2/python3/httplib2/__init__.py",
>  
> line 1249, in __init__
>     self.proxy_info = proxy_info("https")
>   File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/http_proxy.py", 
> line 49, in GetDefaultProxyInfo
>     pi = httplib2.proxy_info_from_url(proxy_url, method)
>   File 
> "/usr/bin/../lib/google-cloud-sdk/lib/third_party/httplib2/python3/httplib2/__init__.py",
>  
> line 1083, in proxy_info_from_url
>     port = int(port)
> ValueError: invalid literal for int() with base 10: 
> 'c010:101:5476:1c02:2::51]:3128'
> ERROR: gcloud crashed (ValueError): invalid literal for int() with base 
> 10: 'c010:101:5476:1c02:2::51]:3128'
> I have tried to find out but the reason is unclear.
>
> Thank and regards,
>
> On Tuesday, February 9, 2021 at 12:34:17 AM UTC+9 jstsetinin wrote:
>
>> Hello,
>>
>> What Cloud SDK version are you using? The latest version is 326 [1]. Also 
>> you can add verbosity=debug [2] flag to get more debug information about 
>> the error, share the output with us if possible.
>>
>>
>> [1] https://cloud.google.com/sdk/docs/release-notes
>> [2]  https://cloud.google.com/sdk/gcloud/reference/#--verbosity
>> On Monday, 8 February 2021 at 09:38:58 UTC+1 duynhan bui wrote:
>>
>>> Hello everyone,
>>>
>>> I am trying to deploy GAE from jenkins but I get this error:
>>> + gcloud app deploy build/gcloud_staging.yaml --project=abcdefe --quiet 
>>> --version=20211789 ERROR: gcloud crashed (ValueError): invalid literal for 
>>> int() with base 10: 'c010:101:5476:1c09:2::51]:3128'
>>> 10: 'c010:101:5476:1c09:2::51]:3128' looks like IP.
>>> Has anyone ever faced it? If there is solution, please tell me. thank 
>>> you.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b125c254-713c-47f0-b31f-e23ca98e7688n%40googlegroups.com.

Reply via email to