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

Everything returns SHIPMENT.INVALID_PARAMS #104

Open
octoxan opened this issue Jan 4, 2022 · 2 comments
Open

Everything returns SHIPMENT.INVALID_PARAMS #104

octoxan opened this issue Jan 4, 2022 · 2 comments
Labels

Comments

@octoxan
Copy link

octoxan commented Jan 4, 2022

Went through the readme to install this, from master.

It seems no matter what from and to address I put in, the extension returns

{
  "error": {
    "code": "SHIPMENT.INVALID_PARAMS",
    "message": "Unable to create shipment, one or more parameters were invalid.",
    "errors": [
      {
        "to_address": "Invalid format."
      },
      {
        "from_address": "Invalid format."
      },
      {
        "parcel": "Invalid format."
      }
    ]
  }
}

Went in and edited "lib/easypost.rb" in the gems files to log the request being sent, and the response. I can see the from and to address ID's from EasyPost. I can see the parcel ID in the log from EasyPost. Using their curl example from https://www.easypost.com/getting-started I can do the final step to create a shipment just fine using both address ID's, the parcel ID, and the API key from the solidus_easypost.rb initializer.

So it seems the extension is creating the addresses and the parcel okay, and there's nothing actually wrong with those, but it still returns that there's an invalid format in everything.

Any ideas what could be the cause of this issue? Thanks!

@ccarruitero
Copy link
Contributor

@octoxan This was solved? I think was because the version that you were using, right?

@stale
Copy link

stale bot commented Apr 27, 2022

This issue has been automatically marked as stale because it has not had recent activity. It might be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants