504 (Gateway Timeout) Camera Stream

I have configured a camera in hass and everything works great, see the pane and all works but when I try to view the stream I get this error in console (see below). Is there a network issue, I have configured ip instead of hostname. Any help is appreciated.

camera.dahua__ipchdbw4431rzs:1 GET http://copperhead.fritz.box:8123/api/camera_proxy_stream/camera.dahua__ipchdbw4431rzs?token=3e1ef477018dd689816520a0e7c1649bfe29b103e2f2c4fc7ee9b8882490162d 504 (Gateway Timeout)
Image (async)
_setUnmanagedPropertyToNode @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
(anonymous) @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_ @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
a @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
e @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_propagatePropertyChanges @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_propertiesChanged @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_invalidateProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
setProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
window.hassUtil.dynamicContentUpdater @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:11
stateObjChanged @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:142
f @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
a @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
e @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_propertiesChanged @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
__enableOrFlushClients @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushClients @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_propertiesChanged @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
__enableOrFlushClients @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushClients @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_propertiesChanged @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
__enableOrFlushClients @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushClients @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_propertiesChanged @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
__enableOrFlushClients @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushClients @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_propertiesChanged @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
__enableOrFlushClients @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushClients @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_propertiesChanged @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_flushProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_invalidateProperties @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_setProperty @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
Object.defineProperty.set @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:1
_updateHass @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:148
window.HAWS.subscribeEntities.e @ frontend-31db33948536f58f0fdbb8cfdc2726e3.html:148
(anonymous) @ core-363542209d478158788109f8cf3068e8.js:1
a._handleMessage @ core-363542209d478158788109f8cf3068e8.js:1

Can be removed, miscommunication between hass and the synology

What was the misconfiguration? - I’m getting the same thing.

I have the same problem. How did you solve it??