oracle / oracle/oci-python-sdk
call mysql_client_composite_ops.copy_backup_and_wait_for_state display AttributeError: 'DbBackupsClient' object has no attribute 'get_work_request'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 474
- Forks
- 321
- Avg merge
- 23m
- Merged PRs (30d)
- 4
Description
call DbBackupsClientCompositeOperations copy_backup_and_wait_for_state, return:
Traceback (most recent call last):
File "E:\Python\Python38\lib\site-packages\oci\mysql\db_backups_client_composite_operations.py", line 99, in copy_backup_and_wait_for_state
self.client.get_work_request(wait_for_resource_id),
AttributeError: 'DbBackupsClient' object has no attribute 'get_work_request'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "MDS-Cross-Region-BackupCopy.py", line 36, in
copy_backup_response = mysql_client_composite_ops.copy_backup_and_wait_for_state(
File "E:\Python\Python38\lib\site-packages\oci\mysql\db_backups_client_composite_operations.py", line 107, in copy_backup_and_wait_for_state
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
oci.exceptions.CompositeOperationError
the copy backup request is submitted, creating, and SUCCEEDED.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with oci/mysql/db_backups_client_composite_operations.py at copy_backup_and_wait_for_state and inspect the reported get_work_request call. Compare that call with the available DbBackupsClient operations and related composite-operation handling. Done means the copy request can be waited on without the AttributeError or a CompositeOperationError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, python
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100