Server isn't returning a JSONP response
Closed this issue · 4 comments
Rodrigora commented
Hello Blinktrade,
I'm following your documentation and I've found this error when trying to access the public API:
import { BlinkTradeRest } from 'blinktrade';
const BlinkTrade = new BlinkTradeRest({
currency: 'BRL',
prod: false
})
BlinkTrade.ticker().then(console.log)
Look like the library is requiring a JSONP response, but the server returns a JSON response.
Is it a bug in the library/server?
pinhopro commented
The server doesn't support jsonp
Rodrigora commented
Hi @pinhopro, thanks for your reply.
Yes, I see.
So I don't understand why the Blinktrade library is requesting a JSONP format. I'll try again, thanks!
cesardeazevedo commented
Hi @Rodrigora
We deprecated jsonp and we already ship a fix on the library (0.0.17
), take a look at this issue for a better understanding (blinktrade/BlinkTradeJS#32) and just update the library.
Rodrigora commented
Thanks guys! And sorry for creating this issue in the wrong repo
…On Tue, 9 Jan 2018 at 23:45 César D Azevedo ***@***.***> wrote:
Hi @Rodrigora <https://github.com/rodrigora>
We deprecated jsonp and we already ship a fix on the library (0.0.17),
take a look at this issue for a better understanding (
blinktrade/BlinkTradeJS#32
<blinktrade/BlinkTradeJS#32>) and just update
the library.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/blinktrade/frontend/issues/236#issuecomment-356472776>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWpbQsV__rQAc4ex-75yliYVQrBsrYUks5tJBYrgaJpZM4RRRXz>
.