Problem with get_permalink, to get page content

The answer lies in your question already…

When you use get_permalink for your post 171, it gets you

https://mysite/2018/11/24/152-revision-v1

So, as you can see, this post is not a published post, but a revision of a post. Revisions are not public, so you can’t see them…

So how to solve that?

You’ll have to check the correct ID of a post you want to link to and replace 171 with that ID.