Skip to content

Fix AttributeError: 'Response' object has no attribute 'get' #1046

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

Merged
merged 1 commit into from
Sep 16, 2022
Merged

Fix AttributeError: 'Response' object has no attribute 'get' #1046

merged 1 commit into from
Sep 16, 2022

Conversation

fullonic
Copy link
Contributor

@fullonic fullonic commented Sep 13, 2022

Adds the missing .json() Response method in order to transform the response object into a python dictionary.

 'Response' object has no attribute 'get'
@fullonic fullonic changed the title Fix AttributeError: 'Response' object has no attribute 'get' Fix AttributeError: 'Response' object has no attribute 'get' Sep 13, 2022
@gonchik gonchik merged commit c7eebc2 into atlassian-api:master Sep 16, 2022
@H9lDJbyZ
Copy link
Contributor

H9lDJbyZ commented Nov 27, 2022

Hello. After updating to a version that includes this fix, I started getting an error:
AttributeError: 'dict' object has no attribute 'json'
Heh. But if I comment out, then my code starts working correctly:

self.post(path=url, headers=experimental_headers, files={"file": file})
# .json()
.get("temporaryAttachments")

That is, for me, .json() was not omitted and is redundant. I propose to discuss why we get errors dependent on this code.

@gonchik
Copy link
Member

gonchik commented Nov 27, 2022

Hi @H9lDJbyZ ,
does it reflected to the cloud or some specific version of on-prem system ?
Cheers,
Gonchik

@H9lDJbyZ
Copy link
Contributor

H9lDJbyZ commented Nov 28, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants