Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using TESTNET #34

Open
webhive opened this issue Apr 24, 2022 · 0 comments
Open

Error when using TESTNET #34

webhive opened this issue Apr 24, 2022 · 0 comments

Comments

@webhive
Copy link

webhive commented Apr 24, 2022

With BINANCE_TEST_NET_ENABLE=true

On this test code

require 'rubygems'
require 'bundler/setup'
require 'binance-ruby'

Binance::Api.all_coins_info!

My Gemfile

source 'https://rubygems.org'
gem 'binance-ruby'

I am getting the following errors:

Traceback (most recent call last):
        5: from test.rb:10:in `<main>'
        4: from /Users/roman/Projects/binance/ruby/vendor/gems/ruby/2.7.0/gems/binance-ruby-1.3.6/lib/binance/api.rb:7:in `all_coins_info!'
        3: from /Users/roman/Projects/binance/ruby/vendor/gems/ruby/2.7.0/gems/binance-ruby-1.3.6/lib/binance/api/request.rb:31:in `send!'
        2: from /Users/roman/Projects/binance/ruby/vendor/gems/ruby/2.7.0/gems/binance-ruby-1.3.6/lib/binance/api/request.rb:45:in `process!'
        1: from /Users/roman/.asdf/installs/ruby/2.7.1/lib/ruby/2.7.0/json/common.rb:156:in `parse'
/Users/roman/.asdf/installs/ruby/2.7.1/lib/ruby/2.7.0/json/common.rb:156:in `parse': 783: unexpected token at '' (JSON::ParserError)
        4: from test.rb:10:in `<main>'
        3: from /Users/roman/Projects/binance/ruby/vendor/gems/ruby/2.7.0/gems/binance-ruby-1.3.6/lib/binance/api.rb:7:in `all_coins_info!'
        2: from /Users/roman/Projects/binance/ruby/vendor/gems/ruby/2.7.0/gems/binance-ruby-1.3.6/lib/binance/api/request.rb:31:in `send!'
        1: from /Users/roman/Projects/binance/ruby/vendor/gems/ruby/2.7.0/gems/binance-ruby-1.3.6/lib/binance/api/request.rb:44:in `process!'
/Users/roman/Projects/binance/ruby/vendor/gems/ruby/2.7.0/gems/binance-ruby-1.3.6/lib/binance/api/request.rb:48:in `rescue in process!': @783: unexpected token at '' 783: unexpected token at '' (Binance::Api::Error)

It happens on exactly this method (all_coins_info!). Other methods I tested was working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant