Giter Club home page Giter Club logo

milkman's Issues

Update doesn't generate authorization URL correctly

The URL generated by the new version of the milkman gem always results in this response

Uh oh... something went wrong. Don't worry though; it's not your fault. The application you're using to interact with Remember The Milk made an error. It might be worthwhile contacting the author of the application and telling them you encountered this page.

Looking into a fix, will submit a PR

Trouble authorizing

This is probably my issue, as I'm new to Ruby and have never used tools like Thor...

I couldn't successfully run "milkman authorize KEY SECRET" in a controller method.
(I get "undefined method authorize").
Should I be doing this in a config script somewhere? And/or through Thor?

I'd love it if the README was a bit more explicit about that.

Thank you!

RTM response parsed as plain text instead of json

Started exploring milkman, got the following while trying 'milkman authorize'

milkman/lib/milkman/authorizer.rb:18:in `authorize': undefined method `[]' for nil:NilClass (NoMethodError)

I think I've traced it to the fact that HTTParty isn't parsing RTM's response as json, but rather plain text. From what I can tell, RTM's response is mime-type text/javascript, so HTTParty chooses "plain" parsing.

This seems to address the problem:

diff --git a/lib/milkman/request.rb b/lib/milkman/request.rb
index 3b750d2..ca4046d 100644
--- a/lib/milkman/request.rb
+++ b/lib/milkman/request.rb
@@ -24,7 +24,7 @@ module Milkman
     private

     def request
-      @response ||= self.class.get @url
+      @response ||= self.class.get( @url, :format => :json )
     end

Looking for confirmation my understanding is correct, before submitting a pull. Not sure why this is (I assume) working for others..

Authorize Issue

When I run the authorize command and enter the web address provided it takes me to the web page saying "API Application wants to link to your RTM account" with a button that says "OK, I'll Allow it".

Once I click that it gives me an error saying:

"Uh oh... something went wrong. Don't worry though; it's not your fault. The application you're using to interact with Remember The Milk made an error. It might be worthwhile contacting the author of the application and telling them you encountered this page.

Alternatively, you might like to wait a little while and then try again."

Any help on this would be great.

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.