It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

error serializing object, when develop react app for serviceDeskPortalRequestCreatePropertyPanels

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

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

@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.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you