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

Support ActiveSupport v5.x #28

Closed
yoonwaiyan opened this issue Sep 18, 2017 · 3 comments
Closed

Support ActiveSupport v5.x #28

yoonwaiyan opened this issue Sep 18, 2017 · 3 comments
Assignees

Comments

@yoonwaiyan
Copy link

yoonwaiyan commented Sep 18, 2017

I'm very new to eBay API so probably I've missed out any helpful information about GetSessionID, not sure if it's related to this gem but I'm trying every possible way.

In my Rails app the current code tries to get a session ID before appending to the authorization URL so that the Rails app can get an auth token for ebay store access, but it didn't work now even though I've set to production environment. I'm trying to call GetSessionID from rails console just to make sure session ID is available before I redirect users to ebay in my controller.

session = Ebayr.call(:GetSessionID, :RuName => Ebayr.ru_name)
=> {:xmlns=>"urn:ebay:apis:eBLBaseComponents",
 :timestamp=>"2017-09-18T06:22:48.336Z",
 :ack=>"Failure",
 :errors=>
  {:short_message=>"Auth token is invalid.",
   :long_message=>"Validation of the authentication token in API request failed.",
   :error_code=>"931",
   :severity_code=>"Error",
   :error_classification=>"RequestError"},
 :version=>"1031",
 :build=>"E1031_CORE_API_18535225_R1"}

I've double checked my app id, dev id, cert id are all set and Ebayr.sandbox is set to false, the only thing I didn't set is the auth_token because new users don't have any before authorizing my app, but if I set an auth_token(of other authorized users) before calling GetSessionID it actually works. Any idea on this? Thanks in advance.

@yoonwaiyan yoonwaiyan changed the title GetSessionId requires auth token? GetSessionID requires auth token? Sep 18, 2017
@yoonwaiyan
Copy link
Author

Seems like it's related to auth token being added in the request in version 0.0.7, but to update my ebayr gem to the latest I need a version bump on the current activesupport dependencies as my Rails app is upgraded to Rails 5 which is using activesupport 5.0.1. Do you mind bumping the runtime dependencies to support Rails 5?

@bjjb bjjb self-assigned this Sep 21, 2017
@bjjb bjjb changed the title GetSessionID requires auth token? Support ActiveSupport v5. Sep 21, 2017
@bjjb bjjb changed the title Support ActiveSupport v5. Support ActiveSupport v5.x Sep 21, 2017
@bjjb
Copy link
Owner

bjjb commented Sep 21, 2017

Done. Let me know how it works for you.

@bjjb bjjb closed this as completed Sep 21, 2017
@yoonwaiyan
Copy link
Author

Works fine, thanks!

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