-
Notifications
You must be signed in to change notification settings - Fork 26
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
Does USPS require a password? #8
Comments
No, according to the USPS docs it does not require a password: https://www.usps.com/business/web-tools-apis/Development-Guide-v3-1d.htm Are you in production mode, or using a test ID? |
I called USPS and they turned my key into a production key, so should be in On Thu, Nov 7, 2013 at 12:42 PM, Travis Haynes [email protected]:
|
Could you please provide an example of the code you're using, and if possible the tracking ID? |
Sorry, I mean a more complete example than the one you already provided. Also, did you try accessing the USPS service directly? Example: usps = Trackerific::Services::USPS.new(user_id: "your user id")
results = usps.track("tracking id") |
Validating my ID works that way. I have config.usps set up in my initializers/trackerific.rb file, but that doesn't seem to be communicating back to the gem? Then I run ArgumentError: invalid date
from /Users/zackshapiro/.rvm/gems/ruby-2.0.0-p247@luna/gems/trackerific-0.7.1/lib/trackerific/services/usps.rb:110:in
`parse'
from /Users/zackshapiro/.rvm/gems/ruby-2.0.0-p247@luna/gems/trackerific-0.7.1/lib/trackerific/services/usps.rb:110:in
`date_of_event'
from /Users/zackshapiro/.rvm/gems/ruby-2.0.0-p247@luna/gems/trackerific-0.7.1/lib/trackerific/services/usps.rb:53:in
`block in track'
from /Users/zackshapiro/.rvm/gems/ruby-2.0.0-p247@luna/gems/trackerific-0.7.1/lib/trackerific/services/usps.rb:51:in
`each'
from /Users/zackshapiro/.rvm/gems/ruby-2.0.0-p247@luna/gems/trackerific-0.7.1/lib/trackerific/services/usps.rb:51:in
`track'
from (irb):3
from /Users/zackshapiro/.rvm/gems/ruby-2.0.0-p247@luna/gems/railties-4.0.0/lib/rails/commands/console.rb:90:in
`start'
from /Users/zackshapiro/.rvm/gems/ruby-2.0.0-p247@luna/gems/railties-4.0.0/lib/rails/commands/console.rb:9:in
`start'
from /Users/zackshapiro/.rvm/gems/ruby-2.0.0-p247@luna/gems/railties-4.0.0/lib/rails/commands.rb:64:in
`<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>' On Thu, Nov 7, 2013 at 12:56 PM, Travis Haynes [email protected]:
|
Hey @travishaynes, just wanted to follow up on this thread |
I will be able to look into this on Tuesday. I'll be busy with something else until then. |
Thanks so much. I'll build a scraper until then On Sat, Nov 9, 2013 at 11:27 AM, Travis Haynes [email protected]:
|
An update on this: I think I've gotten as far as I can. I got Trackerific installed on the most recent version. The gem is correctly getting that it's a USPS package and accepting my dev credentials in config. When I run Here is a link to the USPS tracking info on the web, if that helps: https://tools.usps.com/go/TrackConfirmAction.action?tRef=fullpage&tLc=1&tLabels=9405510200828946707045 |
Hey @travishaynes, want to jam on this together today? |
Any updates on the date stuff with USPS? |
@travishaynes I'm gonna dive in and fix this bug unless you've already done it. Continuing to get it with a package that is en route as well as with a package that has been delivered. |
I just signed up for their dev account and they gave me both a user_id and a password.
Looks like in the docs the gem doesn't require a pass but running
Trackerific::Services.find_by_package_id(params[:tracking_number])
is returning nilAny ideas?
** Resolved **
I tried to bump to version
0.7.5
but it looks like it's conflicting with Nokogiri and needs a version less than1.6.0
. Is that correct? Upon further investigation, and trying to use @superjustin's version, this seems to be a main problem as well. Using Rails 4 and Ruby 2, I have to use a version of Nokogiri less than 1.6 to run Trackerific 0.7.5This last part seemed to be a Mavericks problem. I had to do this: http://jasdeep.ca/2013/10/installing-nokogiri-fails-os-x-mavericks/ to update my command line tools for the new version of OS X, then install Nokogiri 1.5.10, then it let me install Trackerific 0.7.5
The text was updated successfully, but these errors were encountered: