-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
[AIRFLOW-4363] Fix JSON encoding error #7628
Conversation
c110a04
to
e494cbf
Compare
From the docker-py code comments for APIClient pull, the decode parameter should be set to True, when the stream parameter is also set to True. This will allow decoding JSON data returned from the docker registry server into dicts Signed-off-by: Raymond Etornam <[email protected]>
e494cbf
to
5e32de3
Compare
From the docker-py code comments for APIClient pull, the decode parameter should be set to True, when the stream parameter is also set to True. This will allow decoding JSON data returned from the docker registry server into dicts Signed-off-by: Raymond Etornam <[email protected]> (cherry picked from commit 733d3d3)
From the docker-py code comments for APIClient pull, the decode parameter should be set to True, when the stream parameter is also set to True. This will allow decoding JSON data returned from the docker registry server into dicts Signed-off-by: Raymond Etornam <[email protected]> (cherry picked from commit 733d3d3)
From the docker-py code comments for APIClient pull, the decode parameter should be set to True, when the stream parameter is also set to True. This will allow decoding JSON data returned from the docker registry server into dicts Signed-off-by: Raymond Etornam <[email protected]> (cherry picked from commit 733d3d3)
This breaks the pull functionality because the very next function in the loop tries to do a string decode on this dictionary.
|
Darn. @brokenjacobs do you have a suggestion for a fix for this? |
Testing a fix right now. |
remove the entire json.loads() line... change the loop: |
After upgrading from 1.10.9 to 1.10.10, you may see the following error:
You can patch this in your Dockerfile by adding the following (per @brokenjacobs above):
|
From the docker-py code comments for APIClient pull,
the decode parameter should be set to True, when the
stream parameter is also set to True. This will allow
decoding JSON data returned from the docker registry
server into dicts
Signed-off-by: Raymond Etornam [email protected]
Issue link: AIRFLOW-4363
Make sure to mark the boxes below before creating PR: [x]
[AIRFLOW-NNNN]
. AIRFLOW-NNNN = JIRA ID** For document-only changes commit message can start with
[AIRFLOW-XXXX]
.In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.