Hi,
I have some weird behavior in retool. I am calling an HTTP POST request with the following url: https://[url]/{{person_id}}
However, the url is called by retool as http://[url]/{{person_id}}
And an http call is not allowed, so the rest api call fails.
I don't see any settings to force it to https. Is it a bug?
Hi @Maartenvdv,
Could you share a screenshot of your Resource and Query?
this is being called in a on success handler of another query:
updateContractEndDate.trigger({
additionalScope: {
end_date: Contracts.selectedRow.data.end_date, person_id: Contracts.selectedRow.data.person_id
}
})
Mystery solved. The API was expecting a PUT instead of a POST. And the error message returned by the API was showing the wrong url
1 Like