sayem314 / hooman

http interceptor to hoomanize cloudflare requests
https://www.npmjs.com/package/hooman
MIT License
148 stars 18 forks source link

Hooman not working for new captcha page #18

Closed christophernarciso closed 4 years ago

christophernarciso commented 4 years ago

Describe the bug

Actual behavior

Failure to return body of a new captcha challenge page. Resulting in error catching. Captcha page source: https://gist.github.com/christophernarciso/df3a3a8a0602b8426c42d0f64d8f276a

Expected behavior

Should pass through the new captcha page with no issue and return the body of the page.

Code to reproduce

// Node environment testing
(async function main() {
    try {
        const url = 'https://osbot.org/forum/topic/157064-excellent-vorkath/';
        const source = await hooman.get(url);
        console.log(source.body);
        //=> '<!doctype html> ...'
    } catch (error) {
        console.log(error.response.body);
        //=> 'Internal server error ...'
    }
})();

Checklist

sayem314 commented 4 years ago

Thanks for the report. Published version 1.2.5 with fix :)

christophernarciso commented 4 years ago

Thank you for the fix!

Webuser6666 commented 4 years ago

Thanks for the report. Published version 1.2.5 with fix :)

pls update