Hello everyone,
I recently tried a different strategy to solve my problem in Xwiki. My new method was to try to copy a method to update the calendar with a Json-file as described here: https://extensions.xwiki.org/xwiki/bin/view/Extension/FullCalendar%20Application here to host my own file and to fetch the information from there. But even with my code that is nearly Identical to the one in the example I get the following errors:
GEThttp://localhost:8080/bin/view/testseite/MilestonesAPI/XWikiAsyncNotificationsMacro.js[HTTP/1.1 404 1185ms]
Status
404
VersionHTTP/1.1
Übertragen51,80 kB (51,50 kB Größe)
Referrer Policystrict-origin-when-cross-origin
DNS-AuflösungSystem
Cache-Control | no-cache |
Connection | keep-alive |
---|---|
Content-Language | en |
Content-Length | 51495 |
Content-Script-Type | text/javascript |
Content-Type | text/html;charset=UTF-8 |
Date | Thu, 17 Oct 2024 22:07:41 GMT |
Expires | Wed, 31 Dec 1969 23:59:59 GMT |
Keep-Alive | timeout=20 |
Pragma | no-cache |
Accept | / |
Accept-Encoding | gzip, deflate, br, zstd |
---|---|
Accept-Language | de,en-US;q=0.7,en;q=0.3 |
Connection | keep-alive |
Cookie | JSESSIONID=B85F2F02F1CE29D7F6AADE50B8AC945D; username=“ksF9gDnSeeE_”; password=“8Z3yfPgdDuU_”; rememberme=“false”; validation=“0aa6ed5eec645ace9ff6f2d7cf626528” |
Host | localhost:8080 |
Referer | http://localhost:8080/bin/view/testseite/MilestonesAPI/?srid=PRoMl9Ho |
Sec-Fetch-Dest | script |
Sec-Fetch-Mode | no-cors |
Sec-Fetch-Site | same-origin |
User-Agent | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0 |
and
Uncaught Error: Script error for “XWikiAsyncNotificationsMacro”
https://requirejs.org/docs/errors.html#scripterror
makeError http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
onScriptError http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
load http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
load http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
load http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
fetch http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
check http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
enable http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
enable http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
enable http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
bind http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
each http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
enable http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
init http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
s http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
setTimeout handler*req.nextTick< http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
s http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
requirejs http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
http://localhost:8080/bin/jsx/XWiki/Notifications/Code/NotificationsDisplayerUIX?language=en&docVersion=1.1:1
require.min.js:5:1843
makeError http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
onScriptError http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
(Async: EventListener.handleEvent)
load http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
load http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
load http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
fetch http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
check http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
enable http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
enable http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
enable http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
bind http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
each http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
enable http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
init http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
s http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
(Async: setTimeout handler)
nextTick http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
s http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
requirejs http://localhost:8080/webjars/wiki:xwiki/requirejs/2.3.7/require.min.js?r=1:5
http://localhost:8080/bin/jsx/XWiki/Notifications/Code/NotificationsDisplayerUIX?language=en&docVersion=1.1:1
My Code:
MilestonesAPI:
{{velocity}}
{{calendar json=“$xwiki.getURL(‘MyCalendarJSON’, ‘get’, ‘outputSyntax=plain’)”/}}
{{/velocity}}
MyCalendarJSON
{{velocity filter=“html”}}
#if($xcontext.action == ‘get’ && “$!{request.outputSyntax}” == ‘plain’)
$response.setContentType(‘application/json’)
#end
[
{
“id” : 111,
“title” : “Event1”,
“start” : “2024-10-10”,
“url” : “http://yahoo.com/”
},
{
“id” : 222,
“title” :“Event2”,
“start” : “2024-10-20”,
“end” : “2024-10-22”,
“url” : “http://yahoo.com/”
}
]
Has this happened to anyone else?