File not found even previously fetched from the REST API

Hello, I’m facing some issue in my “GitHub Batch” project Pierrot. Some of the files returned from the API (GET) are returning 404 while writing the file (PUT). For example this file on a specified branch.

I have already checked if the token owner (myself) has write access to the repository and the token is present in the request.

I’m using Hub4j.

The critical part of the code can be find here.