I’m trying to connect the EasyPost API using the Bubble.io API connector, and I keep getting a specific error message. I’ve contacted the EasyPost API developers and they don’t see any obvious errors, but I can’t get it to work. I’ll attach some images of how I’ve configured the call, and an image of the error message I’m getting. Anyone have any ideas?
The error reads: **
There was an issue setting up your call.**
undefined error: this header name is not correct undefined
For “Authentication” try selecting “None or self-handled”. Then Add a shared Header and put “Authorization” for the key and “Basic YourApiKey” as the value. Finally below your Parameters should not also include Content-Type: application/json since it is already in shared headers and regardless that is not a parameter. Then it may work.
Hmm, I made those changes and I’m still getting an error message. Although a different one!
I’ll post some new screenshots and you can let me know if I’m missing something obvious.
Thanks for your help on my first post, I really appreciate it
The length, width, height, and weight need to have the quotations marks removed from them in the “parcel” object. They are supposed to be float (number) and not a string. If that alone doesn’t fix it then maybe add a decimal and zero to the end of the height to make 5.0.
Crazily enough, this didn’t do it. I removed the quotations to make these strings, and I added a decimal and a zero to make the floats consistent.
Very strange…
Let me know if you have any other ideas! I’d love to hear what you think!
I’ll also copy out the JSON code here so it’s easier to see:
{
“shipment”: {
“to_address”: {
“name”: “Dr. Steve Brule”,
“street1”: “179 N Harbor Dr”,
“city”: “Redondo Beach”,
“state”: “CA”,
“zip”: “90277”,
“country”: “US”,
“phone”: “8573875756”,
“email”: “dr_steve_brule@gmail.com”
},
“from_address”: {
“name”: “EasyPost”,
“street1”: “417 Montgomery Street”,
“street2”: “5th Floor”,
“city”: “San Francisco”,
“state”: “CA”,
“zip”: “94104”,
“country”: “US”,
“phone”: “4153334445”,
“email”: “support@easypost.com”
},
“parcel”: {
“length”: 20.2,
“width”: 10.9,
“height”: 5.0,
“weight”: 65.9
}
}
}