-
chaos-client version:0.2.0 Current Behavior:Not sure if this should be considered a bug report or a feature request. After the initial Current behaviour: chaos -key $key -d example-app.de
> [ERR] Could not get subdomains for example-app.de: invalid status code received: 429 - {"error":"too many requests"}
# Get the exit code of the previous command
echo $?
> 0 Expected behaviour: chaos -key $key -d example-app.de
> [ERR] Could not get subdomains for example-app.de: invalid status code received: 429 - {"error":"too many requests"}
# Get the exit code of the previous command
echo $?
> 1 Additionally; failed queries are not displayed when using the Current behaviour: # testcase 1 (correct)
chaos
> [FTL] Authorization token not specified
# testcase 2 (correct)
chaos -silent
> [FTL] Authorization token not specified
# testcase 3 (incorrect)
chaos -silent -key $key -d example-app.de # We asume for this query a 429 server error occurs
> # Empty Reply. However, we would expect an error message Steps To Reproduce:To reproduce the 429 error you can query multiple domains at the same time. (It seems there's a bug, even with minutes between queries I still get an 429. This was mentioned in the Discord as well I think) Anything else:I would like to contribute to this project and fix this issue. However I'm not sure if my fix approach would be fine with you. The following code snippet "only" throws a regular chaos-client/internal/runner/runner.go Lines 59 to 63 in b733660 Instead all these chaos-client/internal/runner/options.go Lines 84 to 86 in b733660 However, this would immediately exit the client as soon as a single server error is encountered. This could disrupt the tool when scanning multiple domains at once. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@timoles Thanks for opening this issue. As we are processing a list of domains, I think that |
Beta Was this translation helpful? Give feedback.
-
Closing as last reply is from Jul 2022 |
Beta Was this translation helpful? Give feedback.
@timoles Thanks for opening this issue. As we are processing a list of domains, I think that
gologger.Error().Msgf
is preferable overgologger.Fatal().Msgf
since it would cause the tool to exit, whereas 429 seems like e recoverable error (maybe we could introduce a delay before the subsequent request).I cannot reproduce the status code equal to
1
on OSX. Were you testing on Linux?