It is currently only possible to return data as either structured JSON or as a Plain text (Content-Type: Text). This is a debilitating limitation that makes it impossible to interact with API’s that require other content-types for responses, such as XML.
Bubble is already giving us the ability to send an unstructured response body (when you select plain-text), so its a tiny thing to add a Content-Type field above the plain text box (that defaults to “text”) that can be changed to a different content-type. This would solve so many problems and greatly increase the flexibility of the return data from API action.
This has been requested numerous times on the forum already and has been ignored up to this point:
Thanks for bringing this up again. I have been a member since 2017 and created a bubble plugin for Asana that has over 1,000 users and growing. Unfortunately I don’t maintain that plugin as I lost interest in bubble specifically because of this feature not being available. I have requested this feature through the forum and email more than 4 times, but seems this will never be planned.
I have even upgraded bubble in 2018 I think, thinking it might be on those plans only but was informed later it’s not available. Since that day I have never used bubble again as my apps are all based on webhooks that need this feature.
(Only updated the Asana plugin upon request from @allenyang@emmanuel during the Covid days cuz they wanted to publish the plugin in the blog etc, but don’t know it’s status at present)
So good luck convincing such a small and simple feature request that seems will never happen.
I surely hope so. Last communication I received from support was:
“It looks like you posted on the forum regarding Asana webhooks which is the right approach and are still working through a few suggestions with other users. Let’s continue the conversation there and we can step in if required”
Maybe cuz there wasn’t much response from other members so they haven’t taken it seriously. However now I see others like @trygumball@aj11@anthony.schanen looking for the same feature.
So we need to collectively request it in one topic. But what’s the recommended workflow? Should it be in bugs, idea, help ?
What’s frustrating is how small of a feature this really is. The functionality of the existing action is not changing, we just need to have a field, that when filled, overrides the default “text” content-type when plain-text is selected.
Did this ever get resolved by bubble? @josh , if not, is this something we can expect any time soon? I am also trying to do exactly what @contato11 is doing with the same error message.
If this isn’t something that bubble will implement, I’ll have to create a django jump server just to change the header which is a bunch of extra work and will increase lag time.
Thanks
Paul
It’s a simple thing to add that would solve tons of problems. I worry there’s just not enough of us running into those problems for this to get attention.
You would have to completely rebuild the entire API Connector functionality inside the custom app. For my part, I have 100s of hour into building integrations between my app and 10+ other APIs all through the API connector. Building and then switching over to a completely custom version of the API connector does not make any sense.
All we need is to be able to change the Content-Type value from application/json to the value of our choice. It does not make sense to reinvent the whole wheel when this is such a laughably simple add to the existing plugin.
Also, as @AliFarahat has pointed out, I don’t think you can return data with custom content-type data even via customer plugin. So might not even be possible.
Ahh. Must’ve missed this part. Hell no you can’t. Real pain in the ass. I’ve turned to google cloud functions when I need to return custom data types. Another real pain in the ass.
Yeah, I’ve looked at Introgremat for it, but I just can’t wrap my head around paying for a whole other service just so I can relay returned content with a different content type.
Like seriously, they already allow you to switch the content type to “Plain/Text” with the “Send plain text” checkbox, all we’re asking is to allow us to type in our own value instead (or just give us more options at least).