Skip to content

How to accept ContentType text/plain for webhook #2325

Answered by evantahler
adammendoza asked this question in Q&A
Discussion options

You must be logged in to vote

So the answer was found by @adammendoza

const rawBody = connection.rawConnection.params.rawBody;
Okay, It's a buffer so I used toString() and got the text sent to the API

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@adammendoza
Comment options

@adammendoza
Comment options

@evantahler
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by evantahler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants