Unable to call URL in Atlassian Connect JSON staticContentMacros module when viewing a template page, but can call it when publishing pages

I’m facing an issue where I’m unable to call a URL in the staticContentMacros module of my Atlassian Connect JSON when viewing a template page, but I can call it when publishing pages. Specifically, I’ve defined the URL in the staticContentMacros module, but it doesn’t seem to be working when I view the page in the template editor. However, the same URL works perfectly fine when I publish the page. The adminPages module in my Connect JSON works as expected. The URL I’m trying to call is a remote URL and I have verified that it’s accessible directly in my browser. I have also checked the browser console and network tab, but there are no error messages related to the URL. Has anyone else faced this issue? Any ideas on how to resolve it?

When viewing a page that contains the macro , I’m getting the following error message: Error rendering macro 'macro-key': Page loading failed .