EasyPost / easypost-java

EasyPost Shipping API Client Library for Java
https://easypost.com/docs/api
MIT License
53 stars 37 forks source link

[Bug]: Cannot create new tracker for test numbers #250

Closed yasnmert closed 1 year ago

yasnmert commented 1 year ago

Software Version

6.3.1

Language Version

17

Operating System

Macos

What happened?

As stated in the document, real tracker numbers are created only once.

Trackers based on tracking_code and carrier; duplicate requests by the same User will simply return the original Tracker.

But this rule was not valid for test numbers until about 1 month ago. We could create as many trackers as we wanted with the test number. Currently, we can create a test tracker only once, like a real tracker. Could you check this?

What was expected?

We want to create a new tracker for the test number every time.

Sample Code

No response

Relevant logs

No response

nwithan8 commented 1 year ago

Hello, thanks for reaching out!

We are currently investigating this internally. However, this is not due to the client library, but rather the API, so wouldn't require any change to this Java library.

We'll keep you updated on the situation.

nwithan8 commented 1 year ago

Hello again. We have confirmed internally that, yes, the functionality of test trackers was changed a few weeks ago. Creating a tracker in test mode with the same tracking code and carrier as a previously-created tracker will return the previously-created tracker rather than making a new one. This change was made to match how the process works in production mode.

As mentioned, this is not due to anything in the client library, so there's no work to be done here for this. As a result, we're going to close this issue.

If you need further assistance with testing trackers, please contact our support team at support@easypost.com. Thank you for using EasyPost!

yasnmert commented 1 year ago

Hello thanks for your reply.