TrackingMore API

Hello
I’m trying to connect with trackingmore API
Everything is perfect in postman but not in Bubble

In Bubble I receive no data, and the header answer return text/html instead of App/Json

This simple request is for receive a list of carrier

The request

The Header

The response

Api documentation :
https://www.trackingmore.com/docs/trackingmore/7496dd3c3c0ac-get-all-couriers
(of course you need an api key)

Any idea to help me think about this problem ?

Try to add the accept header
Accept: application/json

The content-type headers is the one received by Bubble and the issue in this case is not Bubble. But you could change to text for the type (however, if the API return a json, this will not be parsed and just show as a text). The accept header could force the API to change the content-type header and Bubble will be able to parse it as JSON.

Also, according to the screenshot you have, there’s no “data” (data key with an array). This could be because the call return nothing or there’s a process not completed on the trackingmore API. Not sure what this API do so it’s hard to know. You may need to manually enter payload

Tks

I’ve already make test with accept and it’s the same.
I’ve tried all the configs it’s the same with or without accept

Try to reach tracking more support and tell them that the API doesn’t return the correct content-type header that should be application/json.

Tks
Already contact them yesterday they will check on their side but the problem is that with postman the response is ok and the same request response is not ok with bubble.

I’ve tried this morning curl import instead of creating call by myself
It Works but don’t know why

This topic was automatically closed after 70 days. New replies are no longer allowed.