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

"Error ThrottlingException: Rate exceeded" #33

Open
macktab opened this issue Apr 19, 2019 · 2 comments
Open

"Error ThrottlingException: Rate exceeded" #33

macktab opened this issue Apr 19, 2019 · 2 comments

Comments

@macktab
Copy link

macktab commented Apr 19, 2019

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?

@marcelopm
Copy link

marcelopm commented Oct 8, 2019

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

@red61wjt
Copy link

red61wjt commented Oct 22, 2021

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants