GithubHelp home page GithubHelp logo

cryptsy-api's People

Contributors

gh2k avatar hayksaakian avatar kost avatar kpheasey avatar nbarthel avatar sovietaced avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cryptsy-api's Issues

Unable to access cryptsy_api gem

Unable to access cryptsy_api gem

2.1.0 :005 > cryptsy = Cryptsy::API::Client.new(api_key, api_secret)
=> #<Cryptsy::API::Client:0x000000039411e8 @key="62f3f575d5b8f260b684717576258cec24aaf7f2", @secret="ac32cc7876a64a69753276d098d2a68016a066c4ca7e4571bc8c4e5bba9c782339aeeaf4444ae7f0", @private_caller=nil>
2.1.0 :006 > cryptsy.getinfo
JSON::ParserError: 757: unexpected token at '

<title>400 - Bad Request</title>

400 - Bad Request

<script type="text/javascript"> // </script>

Unable to access cryptsy with gem

Unable to access cryptsy with gem

Both public & private calls are not working

JSON::ParserError (757: unexpected token at '

<title>400 - Bad Request</title>

400 - Bad Request

<script type="text/javascript">

//
</script>

'):

addressing the security note about cookies on the api page of cryptsy.com?

Via
https://www.cryptsy.com/pages/api

Security Note: Since implementation of our new security layer, some API clients are getting denied access. If possible, you should program your bot to accept cookies to pass the security test. If you are still unable to connect, then contact us with your IP address so that we may whitelist your application.

Correct me if im wrong, but browsing over the code, it seems like you create a new user agent on every request, so at a glance it seems like cookies don't persist between calls.

Is that something you were going to address? I wouldn't want to contact cryptsy each time my IP address changes.

New API url

Cryptsy has a new private API url, could this be integrated in the gem?

Regards Boy Maas (a happy user of the cryptsy-api)

JSON Parser Error

In gem there is no handling of JSON parser error.

A JSON::ParserError occurred in background at 2014-11-10 07:12:12 UTC :
</style>

<script> var toggle = function(id) { var s = document.getElementById(id).style; s.display = s.display == 'none' ? 'block' : 'none'; return false; } var show = function(id) { document.getElementById(id).style.display = 'block'; } var hide = function(id) { document.getElementById(id).style.display = 'none'; } var toggleTrace = function() { return toggle('blame_trace'); } var toggleSessionDump = function() { return toggle('session_dump'); } var toggleEnvDump = function() { return toggle('env_dump'); } </script>

JSON::ParserError

rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in`call' actionpack (4.1.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.6) lib/action_dispatch/middleware/flash.rb:254:in`call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in`call' actionpack (4.1.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:29:in`block in call' activesupport (4.1.6) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:27:in`call' actionpack (4.1.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.6) lib/action_dispatch/middleware/remote_ip.rb:76:in`call' actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in`call' railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.6) lib/rails/rack/logger.rb:20:in`block in call' activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in`tagged' activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.6) lib/rails/rack/logger.rb:20:in`call' actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in`call' rack-contrib (1.1.0) lib/rack/contrib/runtime.rb:18:in `call' activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in`call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in`call' rack-contrib (1.1.0) lib/rack/contrib/sendfile.rb:105:in `call' railties (4.1.6) lib/rails/engine.rb:514:in`call' railties (4.1.6) lib/rails/application.rb:144:in `call' /home/ubuntu/.rvm/gems/ruby-2.1.3@yb-service-stag/gems/passenger-4.0.50/lib/phusion_passenger/rack/thread_handler_extension.rb:74:in`process_request' /home/ubuntu/.rvm/gems/ruby-2.1.3@abc/gems/passenger-4.0.50/lib/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request' /home/ubuntu/.rvm/gems/ruby-2.1.3@abc/gems/passenger-4.0.50/lib/phusion_passenger/request_handler/thread_handler.rb:109:in`main_loop' /home/ubuntu/.rvm/gems/ruby-2.1.3@abc/gems/passenger-4.0.50/lib/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'
/home/ubuntu/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/json/common.rb:155:in`parse'
/home/ubuntu/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/json/common.rb:155:in `parse'
cryptsy-api (0.1.4) lib/cryptsy/api.rb:42:in`execute_method'
cryptsy-api (0.1.4) lib/cryptsy/api.rb:204:in `call_private_api'
cryptsy-api (0.1.4) lib/cryptsy/api.rb:82:in`getinfo' 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.