-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Example restore object from Glacier doesn't work #1422
Comments
I am having this problem as well, the following code:
gets me the same MalformedXML error. Not sure what it's complaining about, and I can't find the relevant schema to verify what boto3 is sending. |
It appears that my problem is that When my RestoreRequest is |
with the |
Looking into this, it might take me some time to reproduce this. |
I've reproduced this and can definitely confirm that the operation will fail with a It would seem that this has always been the case as well so I'm not entirely certain that example ever worked. I'll send a PR to update the documentation to include the PR: #1439 |
Hm it's strange that the |
EDIT: Had to upgrade botocore, some service jsons were outdated |
The From the API Docs: If you need more help with the usage of a service I would suggest reaching out on the service forum. Closing the issue out here as we merged the changes to update the example client code. |
@joguSD Where does it say that?.. according to the boto3 docs it says "OutputLocation (dict) -- |
@jamestwebber I know it's been a while, but I bumped into the same problem as you, but managed to crack it. Here's some example code that works.
|
It's been a while but I'm still facing an issue similar to what @jamestwebber was facing. Not sure exactly what the problem is but it won't work unless I pass days. Interestingly, the current Boto3 documentation seems incoherent in some places; possibly wrong. |
I was trying to retrieve some elements from glacier, for that I was using the example on the documentation
I tried few configurations but no one of them works so I will keep it as simpler as possible, the code:
I'm having problems in the
obj.restore_object()
(which is the most important part)is showing to me the next error:
*** botocore.exceptions.ClientError: An error occurred (MissingRequestBodyError) when calling the RestoreObject operation: Request Body is empty
I tried also to configure the
RestoreRequest
like in the doc of the method but it also didn't work*** botocore.exceptions.ClientError: An error occurred (MalformedXML) when calling the RestoreObject operation: The XML you provided was not well-formed or did not validate against our published schema
Versions:
Python: 3.5
Boto 3: 1.5.18
botocore: 1.8.32
The text was updated successfully, but these errors were encountered: