Widget Connector problem on Confluence 6.4.2 and Confluence 6.13.4
Asked by Mateusz Pelczarski:

Hello everyone,

I have some problems with youtube video links provided by widget connector on Confluence 6.4.2, error appear:

Timeout while getting placeholder. Please try again shortly.

I placed this youtube link to my twitter and publish it with widget connecter without any problem and video is loading normally. Proxy and ReverseProxy is configured correctly.

But beside that issue we are upgrading confluence to 6.13.4 and I can't find it on other macros. Did something change on it? I see its available for this version:

<https://confluence.atlassian.com/conf613/widget-connector-macro-964960940.html>

Thanks for help!


Answers:
author: Adriana Wolfe
body: Getting this same issue on Jira 6.13.4. Existing Widget Connector Macros are working as expected, but new ones are getting the "Timeout while getting placeholder" error. All the WebDAV and Widget plugins are enabled under Plugins \> System.


author: Daniel Eads
body: Hi Mateusz, welcome to the Community!

First of all, I need to advise you about a known CVE with your version of Confluence and the widget connector. This can lead to some unpleasant hacking attempts against your Confluence server [which I describe in this linked article](https://community.atlassian.com/t5/Confluence-articles/Confluence-CVEs-and-common-questions/ba-p/1062634). The good news is that 6.13.4 that you noted you're looking to upgrade to is patched for these vulnerabilities. Short term, it's possible that your administrator disabled the Widget connector already (but if not, I'd strongly urge an upgrade than trying to fix the issue you're seeing now).

In recent releases of Confluence, there's no explicitly macro that you call. You basically paste the URL of the content you want to add, and Confluence automatically converts it to a macro.

Here's an example video:

![widget.gif](https://community.atlassian.com/t5/image/serverpage/image-id/54575i0A8823605D8B7943/image-size/large?v=v2&px=999 "widget.gif")

Cheers,  
Daniel

comments: author: Mateusz Pelczarski
body: Hello Daniel,

I've upgraded Test instance to 6.13.4 but after paste youtube url its not changing to widget connector. When I try manually add it with widget connector same error occur, from atlassian-confluence.log error:

```
2019-05-10 09:38:13,552 ERROR [http-nio-8190-exec-7] [rest.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error : 
-- referer: https://page/pages/resumedraft.action?draftId=174620729&draftShareId=febc7211-ce7b-4dc3-9ec6-17e8ac5122e5 | url: /rest/tinymce/1/macro/placeholder | traceId: 5a12679770325598 | userName: 
java.lang.RuntimeException: com.atlassian.confluence.content.render.xhtml.XhtmlTimeoutException: Rendering this content exceeded the timeout of 5 seconds.
```

I've google it and find solution:

<https://jira.atlassian.com/browse/CONFSERVER-53469>

add value in setenv.sh to:

**CATALINA_OPTS="-Dconfluence.macro.placeholder.timeoutMillis=10000 ${CATALINA_OPTS}"**

error changed to:

```
2019-05-15 13:06:02,118 ERROR [http-nio-8090-exec-6] [rest.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error : 
-- referer: http://page/pages/resumedraft.action?draftId=191463428&draftShareId=ca0c42f9-54a8-49d7-8e0d-823eac58647f | url: /rest/tinymce/1/macro/placeholder | traceId: da0bc0ae841806b0 | userName: 
java.lang.RuntimeException: com.atlassian.confluence.content.render.xhtml.XhtmlTimeoutException: Rendering this content exceeded the timeout of 10 seconds.
```

value changed to 600:

```
2019-05-15 14:13:02,570 ERROR [http-nio-8090-exec-8] [rest.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error :
-- referer: http://page/pages/resumedraft.action?draftId=191463428&draftShareId=ca0c42f9-54a8-49d7-8e0d-823eac58647f | url: /rest/tinymce/1/macro/placeholder | traceId: 1b7d7bd71e84c1bb | userName: 
java.lang.RuntimeException: com.atlassian.confluence.content.render.xhtml.XhtmlTimeoutException: Rendering this content exceeded the timeout of 0 seconds.
```

Page after adding youtube links and twitter:

![2019-05-15 14_21_21-asdasd - Infrastructure Services and Tools - Confluence.png](https://community.atlassian.com/t5/image/serverpage/image-id/54641i58D5EED4AEE513ED/image-size/large?v=v2&px=999 "2019-05-15 14_21_21-asdasd - Infrastructure Services and Tools - Confluence.png")

Error on page when I add it with widget:

![2019-05-15 14_21_53-asdasd - Infrastructure Services and Tools - Confluence.png](https://community.atlassian.com/t5/image/serverpage/image-id/54640i7C8869301CD5639F/image-size/large?v=v2&px=999 "2019-05-15 14_21_53-asdasd - Infrastructure Services and Tools - Confluence.png")


Tags: confluence-server

server