Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Cannot use HTTP PATCH requests #116

Open
lowjoel opened this issue Jan 22, 2016 · 3 comments
Open

Cannot use HTTP PATCH requests #116

lowjoel opened this issue Jan 22, 2016 · 3 comments

Comments

@lowjoel
Copy link

lowjoel commented Jan 22, 2016

There doesn't seem to be a way to make HTTP PATCH requests.

I get:

Uncaught exception: Invalid method patch
        vendor/bundle/ruby/2.2.0/gems/active_rest_client-1.2.0/lib/active_rest_client/request.rb:328:in `do_request'
        vendor/bundle/ruby/2.2.0/gems/active_rest_client-1.2.0/lib/active_rest_client/request.rb:173:in `block in call'
        vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in `block in instrument'
        vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
        vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in `instrument'
        vendor/bundle/ruby/2.2.0/gems/active_rest_client-1.2.0/lib/active_rest_client/request.rb:135:in `call'
        vendor/bundle/ruby/2.2.0/gems/active_rest_client-1.2.0/lib/active_rest_client/base.rb:139:in `method_missing'
        lib/coursemology/evaluator/client.rb:65:in `block in on_evaluation'
        vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in `block in instrument'
        vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
        vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in `instrument'
        lib/coursemology/evaluator/client.rb:64:in `on_evaluation'
        lib/coursemology/evaluator/client.rb:50:in `block in on_allocate'
        vendor/bundle/ruby/2.2.0/gems/active_rest_client-1.2.0/lib/active_rest_client/result_iterator.rb:36:in `block in each'
        vendor/bundle/ruby/2.2.0/gems/active_rest_client-1.2.0/lib/active_rest_client/result_iterator.rb:35:in `each'
        vendor/bundle/ruby/2.2.0/gems/active_rest_client-1.2.0/lib/active_rest_client/result_iterator.rb:35:in `each'
        lib/coursemology/evaluator/client.rb:49:in `on_allocate'
        lib/coursemology/evaluator/client.rb:39:in `allocate_evaluations'
        lib/coursemology/evaluator/client.rb:19:in `block in run'
        lib/coursemology/evaluator/client.rb:18:in `loop'
        lib/coursemology/evaluator/client.rb:18:in `run'
        lib/coursemology/evaluator/cli.rb:18:in `run'
        lib/coursemology/evaluator/cli.rb:11:in `start'
        lib/coursemology/evaluator/cli.rb:7:in `start'
        bin/evaluator:6:in `<top (required)>'
@andyjeffries
Copy link
Contributor

I've fixed this in v1.2.14 of my Flexirest fork. Thanks for the report. https://www.andyjeffries.co.uk/what-is-flexirest/

@lowjoel
Copy link
Author

lowjoel commented Jan 22, 2016

Awesome, I'm switching :)

@edwardjrp
Copy link

Thanks mate, this is great. Switching!!!!!

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

No branches or pull requests

3 participants