what if someone pass an empty `opt_params` to generateUri?