Minn. Stat. § 589.03
When application for a writ of habeas corpus is made to a judge whose chambers are not located within the county where the prisoner is detained, that judge shall require proof, by the oath of the applicant or other evidence:
(4) that judges in the detaining county have refused to grant the writ.
If the proof required by this section is not produced, the application must be denied.