-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
"Error ThrottlingException: Rate exceeded" #33
Comments
In the meanwhile, it's possible to implement a retry with the following script: (knife is just my custom wrapper for sed) #!/bin/bash
LOG=$1
CUT="${2:-\[[^]]+\] \([^)]+\)}"
RETRIES="${3:-1}"
# set a bash option so that if any of the piped commands fails, $? will be different than 0
set -o pipefail
# watch logs and trim part of the output
saw watch "$LOG" | knife "$CUT"
# if the pipe fails and retries are within a reasonable number, retry
if [[ $? -ne 0 ]] && (("$RETRIES" <= 10)) ; then
sleep 1
RETRIES=$((RETRIES + 1))
echo -en "\nRetrying... $0 \"$LOG\" \"$CUT\" $RETRIES\n"
$0 "$LOG" "$CUT" $RETRIES
fi |
Any update? I'm seeing this issue and it's really hampering my use of the tool |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Getting "Error ThrottlingException: Rate exceeded status code: 400, request id: a7d9be90-627d-11e9-9a51-578e1f84b418" from saw.
Maybe, can add some refresh interval for parameter?
The text was updated successfully, but these errors were encountered: