devsnek/snekfetch

Request Promise never resolves or rejects.

Closed this issue · 1 comments

const snekfetch = require('snekfetch');
snekfetch
    .post('https://strawpoll.me/api/v2/polls')
    .send({ title: 'Cats', options: ['1', '2'] })
    .then(res => console.log(res.body))
    .catch(console.error);

The console never logs the body, no error is caught. Nothing at all happens 🤔 . Nothing except massive memory rise.

fixed in f47ae61