lorenzh / fut-api

Ultimate Team API - FIFA 16 - unofficial
MIT License
53 stars 12 forks source link

Empty Object after bid-request #17

Open derSoerrn95 opened 7 years ago

derSoerrn95 commented 7 years ago

I've got a problem with the bid-function.

I'm sending something like that (coins:350, tradeId:173812678300) to my server which calls your bid-function

   `var tradeId = req.body.tradeId;
    var coins = Number(req.body.coins);
    if (futapi.isPriceValid(coins)) {
        apiClient.placeBid(tradeId, coins, function(error, response){
            if(error) {
                resp.json(error);
            } else {
                resp.json(response);
            }
        });
    } else {
        resp.send("non valid price...");
    }`

but I'm always getting an empty response ("{}").

Hope someone can help :-)

pjar commented 7 years ago

This happens for me as well, also players are not showing up in FIFA 17 transfers list nor as unassinged players.

UPDATE: In my case, the response was empty because I've passed undefineds - I've been trying to get a value from a wrong key.