Comments (7)
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.
interesting, is is possible our version of faraday is different to yours in some way?
from desk.
It looks like we're running the same:
faraday (0.7.5)
faraday_middleware (0.7.0)
from desk.
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.
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.
do you need any more information from me?
from desk.
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)
- Copy-paste errors in ratelimit_remaining
- Faraday parsing errors even after #31 HOT 12
- Please update faraday dependency / conflicts with google oauth2 HOT 1
- gem "hashie" issue HOT 7
- Search case by order_no HOT 7
- collections only respond to each instead of all of Enumerable HOT 4
- Raise Desk-namespaced exceptions for other non-200 responses
- 422 error response not parsed correctly HOT 5
- Faraday::ParsingError: 757: unexpected token at 'Too Many Requests' HOT 1
- Desk.com gem ignores client config? HOT 2
- Desk.delete_case is not working HOT 3
- Logger does not log request and response body
- Document how to log request and response
- RuntimeError: missing dependency for FaradayMiddleware::Deashify: undefined method `type' for class `Hashie::Mash' HOT 9
- Incorrect from/reply_to address
- Configuration Issue
- Desk.insights_meta produces a 404 HOT 2
- Problem with the Thread.current in the Configuration HOT 1
- Bug when creating articles HOT 1
- Hashie fixed version giving conflicts HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from desk.