1

I am trying to stream my dex offers, but I keep getting 406 : not applicable

To Reproduce

// "stellar-sdk": "^5.0.2",
let StellarSdk = require('stellar-sdk')
let server = new StellarSdk.Server('https://horizon.stellar.org');

server.offers()
    .forAccount("GBNEOJ5TZEDXEE2IYKXQ2HQEIZUQGVLS74KNZ72MAWMNPA4IKFC7BHR7")
    .stream({
        onmessage: (currentOffers) => {
            console.log(currentOffers);
        },
        onerror: (err) => {
            console.log(err)
        }
    })

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.