This is a response to the meta call for contradictions.
In Genesis 39, there is a fantastically vivid story of Potiphar's wife seducing Joseph, or rather, attempting to. The result is that Joseph is imprisoned in a prison, where the head of the prison takes a liking to him.
But immediately afterwards, in Chapter 40:4 we read the following:
And the head chef appointed Joseph to be with them, and serve them, and they spent many days arrested.
(if you use a different translation, the "head chef" in the above is more often translated as "head of the guard". The Hebrew is "rosh ha-tabachim", and it refers to "Potiphar", from the previous chapters in all translations.)
The "head chef" is Potiphar (everyone agrees that Potiphar is the referent). What is Potiphar doing supervising Joseph in prison? Why does chapter 39 close off by saying that the head of the prison took a liking to him?
And the head of the prison, saw to nothing in his charge, because Yahweh is with him, and whatever his does, Yahweh makes succeed.
Wouldn't it make more sense that the head of the prison would send him to supervise the others? Why is he still hanging out with Potiphar after Potiphar's wife accused Joseph of trying to rape her? And what is a "rosh ha-tabachim" (head chef) doing in prison anyway?
Why does Genesis 39 throw the rest of the narrative off, by sending Joseph away from Potiphar?