These are chat archives for waltfy/destiny

16th
Dec 2015
mart2967
@mart2967
Dec 16 2015 17:29
Hi everyone! I'm trying to use this library in a react native app, and have run into some trouble right out of the gate. When calling destiny.Search there is no data returned, and no error either.
Here's the code:
componentDidMount: function() {
        console.log('searching');
        destiny.Search({
            membershipType: 2,
            name: 'mypsn'
        }).then(res => {
            this.setState({'user': res});
            console.debug('user', res);
        }).catch(err => {
            this.setState({'error': err});
            console.debug(err);
        });
    }
mart2967
@mart2967
Dec 16 2015 17:35
I moved the logs above the setState, and now I get a TypeError: Network request failed. That's certainly better :)
mart2967
@mart2967
Dec 16 2015 17:40
After removing the proxy server from the require, it works! Thanks for all the help haha (this seems to happen a lot, solving an inscrutable problem immediately after seeking assistance)