vanicat / hubic-swift

A wraper for using swift with https://hubic.com
5 stars 2 forks source link

error 509 #9

Closed szepeviktor closed 10 years ago

szepeviktor commented 10 years ago

While using a nodejs hubiC solution I was seeing 509s also.

/usr/lib/ruby/vendor_ruby/mechanize/http/agent.rb:268:in `fetch': 509 =>  (Mechanize::ResponseCodeError)
        from /usr/lib/ruby/vendor_ruby/mechanize.rb:1182:in `post_form'
        from /usr/lib/ruby/vendor_ruby/mechanize.rb:515:in `submit'
        from /usr/lib/ruby/vendor_ruby/mechanize/form.rb:178:in `submit'
        from /usr/lib/ruby/vendor_ruby/mechanize/form.rb:184:in `click_button'
        from ./hubic-swift:173:in `connect_to_hubic'
        from ./hubic-swift:244:in `main'
        from ./hubic-swift:252:in `<main>'
Amoki commented 10 years ago

Same problem here :'(

vanicat commented 10 years ago

If I understand corectly, if you use nodejs hubiC solution, you don't need my app. You just have to directly use swift.

szepeviktor commented 10 years ago

Actually my chosen lib is this: https://github.com/puzzle1536/hubic-wrapper-to-swift It works without an HTTP server.

ghost commented 9 years ago

I found a workaround by adding sleep(2) just before page2=form.click_button (line 176). It works for me.