GithubHelp home page GithubHelp logo

Comments (7)

chriswarren avatar chriswarren commented on August 27, 2024

Ran your script using the credentials I use with the gem in production and I'm able to successfully retrieve a case, but I get an error in the second part of the script:

/Users/cdw/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/net/http.rb:560:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError)

I haven't had a chance to investigate any further yet.

from desk.

shaneshort avatar shaneshort commented on August 27, 2024

interesting, is is possible our version of faraday is different to yours in some way?

from desk.

chriswarren avatar chriswarren commented on August 27, 2024

It looks like we're running the same:

faraday (0.7.5)
faraday_middleware (0.7.0)

from desk.

chriswarren avatar chriswarren commented on August 27, 2024

If you make a brand new directory and use RVM to have a clean slate with just Assistly, OAuth, and JSON, are you able to connect?

from desk.

shaneshort avatar shaneshort commented on August 27, 2024

I created a new gemset and went to install the assistly gem:

:~# gem install assistly
ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: assistly requires hashie (~> 1.0.0); rash requires hashie (~> 1.1.0)

Looks like rash has been recently updated, so installed the older version:

:~# gem install rash --version 0.3.0
Fetching: hashie-1.0.0.gem (100%)
Fetching: rash-0.3.0.gem (100%)
Successfully installed hashie-1.0.0
Successfully installed rash-0.3.0
2 gems installed

Then installed the assistly, json and oauth gems and re-ran my test (http://pastie.org/private/r6bfn2cmg4r8i0pdetllq -- updated as I was being lazy with some requires due to the fact I was including from rails):

:~# rvm gemset list ; ruby --version ; ruby /srv/conventia/wiab/rails/tmp/assitly_gem_test.rb ; gem list --local
gemsets for ree-1.8.7-2011.03 (found in /usr/local/rvm/gems/ree-1.8.7-2011.03)
=> assistly-test
   global

ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2011.03
ERROR: HTTP 401 thrown
--
#<Net::HTTPOK 200 OK readbody=true>

*** LOCAL GEMS ***

addressable (2.2.6)
assistly (0.2.6)
bundler (1.0.21)
faraday (0.7.5)
faraday_middleware (0.7.0)
hashie (1.0.0)
i18n (0.6.0)
json (1.6.1)
mail (2.3.0)
mime-types (1.17.2)
multi_json (1.0.3)
multi_xml (0.4.1)
multipart-post (1.1.3)
oauth (0.4.5)
polyglot (0.3.3)
pony (1.3)
rack (1.3.5)
rake (0.8.7)
rash (0.3.0)
simple_oauth (0.1.5)
treetop (1.4.10)

from desk.

shaneshort avatar shaneshort commented on August 27, 2024

do you need any more information from me?

from desk.

chriswarren avatar chriswarren commented on August 27, 2024

Did you figure this out? I've seen this error come up when something in the request is invalid/unsupported by the Assistly/Desk API. Nothing's jumping out at me in your request, but it'd be worth checking in to.

from desk.

Related Issues (20)

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.