Open xanadiu opened 7 months ago
PR welcome ... do you have the backtrace ?
I did not yet investigate the Gem internals, so I have no starting point for a PR.
Concerning the error or unexpected behaviour: how can I generate a backtrace? My observation is that the log only contains "Completed 500 Internal Server Error" without further context info, even with config.log_level = :debug
.
could go into the gem bundle open
and add a raise
where it does the request
or check the code for where the site key is checked and change things there until the test works (locally)
Problem
Despite the following readme statement
I discovered that the Gem can cause "Completed 500 Internal Server Error" entries in
test.log
. This occurs when the environment variableRECAPTCHA_SITE_KEY
is not set, independent of its value.That happened to me during CI jobs where only minimal environment variables were defined. Only after providing an empty site key environment variable the tests succeeded.
Expected behaviour
It would be great if the Gem really and cleanly is skipped in test environments without the need of (empty) environment variables.
System information