Do you have "recovery_target_timeline=latest" configured in your recovery.conf or postgresql.conf? Depending on the version you are using, up to 11 recovery.conf and postgresql.conf 12+.
Even I have this problem when I had to recover the database failed switchover. This is error is new primary server.
< 2021-06-15 16:05:02.480 CEST > ERROR: requested starting point AF/7D000000 on timeline 1 is not in this server's history < 2021-06-15 16:05:02.480 CEST > DETAIL: This server's history forked from timeline 1 at AF/7C0F8D58.