Forums

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

error serializing object, when develop react app for serviceDeskPortalRequestCreatePropertyPanels

Gary_Zhang
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!
January 11, 2020

we're develop react based webapp for this module serviceDeskPortalRequestCreatePropertyPanels

we need to save data into jira issue entity property. however we have difficulty using the JavaScript API to serialize data. when using react app to serialize data we always have this error.

Error message:

onSubmit: Connect addon timed out while serializing request information for request-type-id: 11

 

I can serialize object with plain html+jquery+(Jira service desk JavaScript API)

 

but with the react app, seems serialize object always has this time out error.

 

How can I fix this.

2 answers

0 votes
Joshua DeFord
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!
April 22, 2020

@Gary_Zhang Each addon that is rendered in the create request screen expects you to have added a validation listener that reacts when called after the 'send' button is clicked.  When your your listener code is called the atlassian code waits for the addon to call requestProperties.validate(<true | false>).  In fact, it waits for all addons that were rendered on that screen to call that validate() method.  If any don't do it with in a second or so, the screen fires that timeout error you are getting.

If you have only one addon, make sure you've registered this listener and that it calls validate() after submit. If you have more than one addon, you'll have to make sure they all result in the validate() method being called.

Also, you can't do any heavyweight calculations or network calls in these listeners because the timeout value the set is very small.

0 votes
Paulo F.
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 13, 2020

Hi Gary,

I would suggest reaching out to the Developer Community:

https://community.developer.atlassian.com/

There you will be able to get better support for your development queries.

Cheers,

Paulo

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events