Was taking some images of some guttering on a roof the other day and , in autofocus, even when tapping on the gutter on the screen, still producing images like this.
Might be there’s not enough contrast for autofocus to work if your aiming it in the gutter, try edge or something at same distance then re frame your shot. If you stop down a little it will increase your depth of field.