Hi there - I’m using Zeroqode twilio plugin and I just noticed that the spaces encoded in my text message body is now coming across as “\n” instead of including the space. It was working fine this morning but can’t have multiple paragraphs now. Please see the example below:
What I inputed:
"This is a
Test"
What appeared in the sms:
“This is a\n\nTest”
Let me know what could be causing this as I also sent out a message this morning and it worked fine but now every message includes those “\n” instead of paragraph spacing.
Not really sure, maybe you experimented with " " or ’ ’ or without them?
we didn’t change anything in the plugin in between your tries. so there must be something you changed?
Thanks for the reply. We’ve been using the plugin for months multiple times per week and haven’t noticed this until yesterday afternoon. We didn’t make any development or production changes at that time so not sure what is causing it. Twilio said that we’d have to reach out to the third party developer. Is this something you can help me with?
This setup is indeed replacing the \n in my body but is not creating the line break. It is just combining the two paragraphs together by replacing \n with nothing. When I put a line break in the replace by section it then goes back and puts in another \n into the text. Any suggestions?
No, haven’t explored this in my app yet. If you find something let me know, for now I’m just rolling with thousands of improperly formatted texts. Will likely stand up a separate server to abstract the Twilio functions away from bubble… Have been dealing with issues like this for the last year.
Bubble released a fix to a bug I had submitted, #5404.
The bug was that Bubble wasn’t escaping the new line definition of \n with \\n in api payloads.
This fixed a problem I had when using the ClickSend Plugin. Each message I sent which contained a new line character was creating an error response from Clicksend because the \n was not escaped.
It looks like maybe this has impacted the way the Twilio Plugin works.