Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Internal Server Error while appending new column in existing table using JSOUP html parser

vimlesh yadav
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 18, 2018

We have a requirement where we need to update the existing table on confluence page using Rest API.  We download the table content and then parse the data using JSOUP html parser and then get all first table. From Table Element we retrieved all rows Element and row element we add new <td>New Data</td> but while submitting this table we are getting 500 Internal Server Error and at times BAD request.  But this data is getting parsed correctly on HTML page and also on JSON formatter properly.

1 answer

0 votes
James Richards
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 11, 2018

Hello vimlesh,

 

If you're getting a 500 error it might be that the data you're sending isn't converted to HTML/XML correctly. 

For example, in the REST call, if the table has a field like Peanut Butter & Jelly, then the & needs to be &amp;.

Alternatively you can check the atlassian-confluence.log file when you make the REST call to see if it gives any errors.

Regards, James

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events