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
We saw this issue was caused by some booleans in our configuration { .... "central_config": false, .... }
This result in a error in this line (/elastic_apm_agent.rb:93 ):
if /$[({][^\)\}]+[)}]/ =~ value
So it tries to match a regex to a boolean and this results in an error.
We have updated our configuration by putting the values to
"central_config": "false",
And this is accepted, so our problem is solved.
But is would be nice if this issue will be fixed. I assume the line would be something like
if /$[({][^\)\}]+[)}]/ =~ false.to_s
But I'm not very familiar in ruby so I don't know if this can cause kind of nullpointers or something. That's the reason I raised this issue instead of creating a PR.
The text was updated successfully, but these errors were encountered:
Thanks for letting us know. It sounds like we should have enough to reproduce with some unit tests. We'll get this patched up so it accepts both false or "false".
We were facing a problem in the configuration of elastic apm agent.
We saw this issue was caused by some booleans in our configuration
{ .... "central_config": false, .... }
This result in a error in this line (/elastic_apm_agent.rb:93 ):
if /$[({][^\)\}]+[)}]/ =~ value
So it tries to match a regex to a boolean and this results in an error.
We have updated our configuration by putting the values to
"central_config": "false",
And this is accepted, so our problem is solved.
But is would be nice if this issue will be fixed. I assume the line would be something like
if /$[({][^\)\}]+[)}]/ =~ false.to_s
But I'm not very familiar in ruby so I don't know if this can cause kind of nullpointers or something. That's the reason I raised this issue instead of creating a PR.
The text was updated successfully, but these errors were encountered: