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
When the plugin is disabled or there is no span available, we end up calling addCookie({value: undefined}) which causes the following error in chromedriver: invalid argument: missing 'value'
We should guard the addCookie in an undefined check.
I'm observing this error on 5.14.0 but it should be present on all versions since 5.11.0 and pretty easy to reproduce if you use selenium.
I can't find any way to workaround this. DD_TRACE_SELENIUM_ENABLED=false doesn't work because the instrumentation still tries to call addCookie.
hey @garrettheel ! Thanks for reporting the issue. Under what circumstances does this happen? How are you running your selenium tests? Would you mind providing a small reproducible case?
There is a bug here introduced by #4241
When the plugin is disabled or there is no span available, we end up calling
addCookie({value: undefined})
which causes the following error in chromedriver:invalid argument: missing 'value'
We should guard the
addCookie
in an undefined check.I'm observing this error on
5.14.0
but it should be present on all versions since5.11.0
and pretty easy to reproduce if you use selenium.I can't find any way to workaround this.
DD_TRACE_SELENIUM_ENABLED=false
doesn't work because the instrumentation still tries to calladdCookie
.cc @juan-fernandez
The text was updated successfully, but these errors were encountered: