Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with templates_list #26

Open
azranel opened this issue Mar 22, 2017 · 2 comments
Open

Problem with templates_list #26

azranel opened this issue Mar 22, 2017 · 2 comments

Comments

@azranel
Copy link

azranel commented Mar 22, 2017

Just tried and following problems occur:

[9] pry(main)> client = RightSignature::Connection.new(api_token: AppConfig.rightsignature.api_token)
[10] pry(main)> client.templates_list
MultiXml::ParseError: Start tag expected, '<' not found
from /Users/bartoszlecki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/multi_xml-0.6.0/lib/multi_xml/parsers/nokogiri.rb:16:in `parse'

AppConfig.rightsignature.api_token is present for sure.

@rangerscience
Copy link

I don't really know this gem well enough to have a real idea what's going on, but I've been using the templates_list without issue (and with an api_token) for awhile now.

I notice that it's referencing Nokogiri, when the gem is set to use XmlFu (an old version). That may be a source of the issue?

The other thing you can do is clone this repo locally, and poke around - just load the library from the local copy, and you can stick some debug code in the connection to check it out in more detail.

@azranel
Copy link
Author

azranel commented Mar 23, 2017

Just tried to poke around and I get "Invalid OAuth request" but not really sure why. Headers look good to me (they have "api-token" inside).

Well, it's definitely not issue of library most likely but rather problem of some API token stuff. Library could use some error handling though. Will make some PR in a moment.

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

No branches or pull requests

2 participants