"use strict";
let fetch = require('node-fetch');
module.exports = function searchDeclaration(link) {
    return fetch(link)
        .then(response => response.text())
        .then(data => JSON.parse(data))
};

@@ -200,11 +200,195 @@
 (data))%0A
+        .catch((err) =%3E %7B%0A            console.log(err);%0A            console.log(%22...But, I gotta keep trying, and never give up!%22);%0A            return module.exports(link);%0A        %7D)%0A
 %7D;%0A

Update fetch json It gotta keep trying, and never give up!