Replies: 1 comment
-
Up |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all!
I'm creating a webhook to interact with an external website using Django Rest Framework.
The webhook is currently sending site informations when created.
The
HTTP Content Type
is set to:When the webhook is triggered for a Site containing only one line in
Physical Address
(or no line at all), everything works as expected.On the other hand, when a Site is created with multiple lines on the
Physical Address
field, the data sent to the DRF application does not respect the format expected.Checking the logs on the external application, I see 2 different formats received (one format when multiple lines on
Physical Address
field, one when only one line in it).With one line (or none):
With multiple lines:
I get these extra
\n
in the data, which creates aJSON parse error
on the other side.Is this some kind of bug? Or is it just a bad configuration on my side?
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions