LinkedIn Post API Error

So my app sends post for the user to linkedin.

I am running into this error when doing it.

{“status”:400,“code”:“ILLEGAL_ARGUMENT”,“message”:“Request body could not be converted to data map”}

The first issue was, that the text has paragraph spaces and because of that, bubble format it as /n/n but only for the linkedin connection and not the twitter one.

However, I am taking a look at the log and do not see that formatting for it but still gt error. (see the picture below)

I tried trimming the text and I thought it fixed it but still having the issue.

Does anyone has a clue what the fix may be?