Azure / Azure/azure-cli

Deploying Java Function As Zip Fails With Python Error

Open
#17,403 5 comments 0 reactions 0 assignees View on GitHub
act-observability-squad Functions Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### **This is autogenerated. Please review and update as needed.**

## Describe the bug

The zip was built with `./gradlew azureFunctionsPackageZip`.

The command was then run to deploy the zip.

**Command Name**
`az functionapp deployment source config-zip`

az functionapp deployment source config-zip -g dev_rg -n dev-upload-function --src function-test/dev-upload-function/build/azure-functions/dev-upload-function.zip

**Errors:**
```
HTTPSConnectionPool(host='dev-upload-function.scm.azurewebsites.net', port=443): Read timed out. (read timeout=3)
Traceback (most recent call last):
python3.6/site-packages/urllib3/connectionpool.py, ln 426, in _make_request
six.raise_from(e, None)
, ln 3, in raise_from
python3.6/site-packages/urllib3/connectionpool.py, ln 421, in _make_request
httplib_response = conn.getresponse()
lib/python3.6/http/client.py, ln 1354, in getresponse
response.begin()
...
socket.timeout: The read operation timed out

python3.6/site-packages/requests/adapters.py, ln 529, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='dev-upload-function.scm.azurewebsites.net', port=443): Read timed out. (read timeout=3)
```

## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

- _Put any pre-requisite steps here..._
- `az functionapp deployment source config-zip -g {} -n {} --src {}`

## Expected Behavior

## Environment Summary
```
Linux-5.8.0-44-generic-x86_64-with-debian-bullseye-sid
Python 3.6.10
Installer: DEB

azure-cli 2.20.0

```
## Additional Context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.