Skip to content
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

Bug: 'StandardCollection' object has no attribute 'result' #210

Open
qohelet opened this issue Aug 20, 2021 · 0 comments
Open

Bug: 'StandardCollection' object has no attribute 'result' #210

qohelet opened this issue Aug 20, 2021 · 0 comments

Comments

@qohelet
Copy link

qohelet commented Aug 20, 2021

In the documentation there's a chapter on Batch API Execution which refers to the following code:

# Retrieve the results of successful jobs.
metadata = job1.result()
assert metadata['_id'] == 'students/Kris'

metadata = job2.result()
assert metadata['_id'] == 'students/Rita'

cursor = job3.result()
assert cursor.next() == 100000

# If a job fails, the exception is propagated up during result retrieval.
try:
    result = job4.result()
except AQLQueryExecuteError as err:
    assert err.http_code == 400
    assert err.error_code == 1501
    assert 'syntax error' in err.message

However, executing job*.result() will always result in a
*** AttributeError: 'StandardCollection' object has no attribute 'result'
Also the Repository doesn't have any codelines containing def result. Was this eventually deprecated and removed? What is the replacement? Most of the methods can't be used after the commit.

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

No branches or pull requests

1 participant