You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
botocore | RDS | downloadlogfile doesn't work ometimes have problem with processing specific log files, for example if log file contain non printable sign
#910
Closed
gidimariastorm opened this issue
May 5, 2016
· 2 comments
Hi,
I have a problem using both aws-cli(latest version) and boto3. Both are botocore based.
I've opened a ticket to aws support and he told me:
I understand that you are having unexpected behaviour when trying to display the slow query log for your instance and are encountering the following error message "A** client error (InvalidParameterValue) occurred when calling the DownloadDBLogFilePortion operation: This file contains binary data and should be downloaded instead of viewed**.".
It appears that you are hitting a known issue with downloading log files that contain non printable sign
"A** client error (InvalidParameterValue) occurred when calling the DownloadDBLogFilePortion operation: This file contains binary data and should be downloaded instead of viewed**."
If so, that is looking like the error is coming from the service. You can confirm this as well by adding the line ``boto3.set_stream_logger('botocore') to that client call and you should see RDS responding with that error. If it was an issue with the model, I would expect that boto3 should be receiving a successful HTTP response from rds and then boto3 having encoding issues. Could you possibly confirm where the error is propagating from?
Hi,
I have a problem using both aws-cli(latest version) and boto3. Both are botocore based.
I've opened a ticket to aws support and he told me:
This error my boto3 command is the following:
rds=boto3.client('rds',SOURCE_REGION,aws_access_key_id=DEFAULT_ACCESS_KEY,aws_secret_access_key=DEFAULT_SECRET_KEY)
log_file=rds.download_db_log_file_portion(DBInstanceIdentifier="my-rds",LogFileName="slowquery/my-slowquery.log")
the boto3.client is a wrapper that calls the client function of botocore.
If think that the problem is here https://github.com/boto/botocore/blob/7384364df5b7f438678ad0777f07ce37c39e9f59/botocore/data/rds/2014-09-01/service-2.json
because the LogFileData is "string"
I have to say that the most part of time the function works. Can you fix the problem? I
Giuseppe
The text was updated successfully, but these errors were encountered: