[fix] Passes resource to curl error