Hi,
I’ve discovered strange behaviour after deployment of my app with the included dialog code.
Descriptor module definition:
"dialogs": [
{
"url": "/macro/testmacro/test-dialog.html",
"cacheable": true,
"options": {
"header": {
"value": "Test Header"
}
},
"key": "test-dialog-key"
}
]
Dialog invocation:
window.AP.dialog.create({
key: 'test-dialog-key',
width: '300px',
height: '300px',
chrome: true,
submitText: 'Save'
});
As you can see, fairly “hello world” simplicity dialog code.
Please note that when testing locally (normal confluence cloud instance, project files served over ngrok from my machine) everything works as expected and the dialog appears with the normal content.
When testing after deploying the app to s3 hosting however, the following error is returned instead of the dialog content:
Error: The content resolver threw the following error:
(spinner) Loading app…
Unable to retrieve addon module URL. Please check your specified module key.
Inspection of the associated network call shows that the following is returning a 404 instead of expected data:
(base-url)/plugins/servlet/ac/(addon-key)/test-dialog-key
The mechanism by which the above URL is generated and/or implemented seems to not be functioning correctly when my app is deployed. Anyone have any insights?