I accidentally used dplyr::between() instead of between() in join_by(). Not sure whether you want to accept it with a namespace or not but the error message isn't very helpful.
dplyr::join_by(dplyr::between(y, a, b))
#> Error in `as_string()`:
#> ! Can't convert a call to a string.
#> Backtrace:
#> ▆
#> 1. └─dplyr::join_by(dplyr::between(y, a, b))
#> 2. └─dplyr:::parse_join_by_expr(exprs[[i]], i, error_call = error_call)
#> 3. └─rlang::as_string(expr[[1]])
#> 4. └─rlang:::abort_coercion(x, "a string")
#> 5. └─rlang::abort(msg, call = call)
Created on 2023-05-02 with reprex v2.0.2