Scripts fails when triggered with error message stating "Unable to load script "
Hi,
I checked the logs with Firebug and (strange thing) it seems that my script is not on the server (or not where it is supposed to be).
Has anyone ever faced a similar issue and managed to solve it ? Or should I be totally desperate ? :) Thank for your help
|
5 answers
Thanks for the tip.
Yes at first I thought it might come from the position of "dojo.provide" this is why I tried to put it in several locations. However this has not worked as the error is triggered anyway. I will try the "debug" mode next week as I am off tomorrow and I will keep you posted. Hope that will help. |
Hi again,
I checked with the debug mode set to true but it is not as verbose as expected. As an example please find below a screenshot of what I obtain as soon as I open a webpage Apparently the following function seems to fail : // FIXME: probably need to add logging to this method dojo._loadUriAndCheck = function(/*String*/uri, /*String*/moduleName, /*Function?*/cb){ // summary: calls loadUri then findModule and returns true if both succeed var ok = false; try{ ok = d._loadUri(uri, cb); } catch(e){ console.error("failed loading " + uri + " with error: " + e); } return !!(ok && d._loadedModules[moduleName]); // Boolean } |
It looks like the name of your file might be
ValueSetProvider_Requestors.js
but the failing file is ValueSetProvider/Requestors.js... is it possible you attached an earlier version of the Requestors.js file and it is still attached to the project area?
You can check this by looking at the Links page of the Project Area. This would explain why the "wrong version" appeared to be loaded, and why there might be a syntax error in the old version which is not in your new version.
Larry Smith [IBM RTC Development]
|
Hi Larry,
I already tried to delete all the links and reload all the scripts unsuccessfully. However I agree with you on one point : the path we see in Firebug is wrong and is not in line with what I can see in both the "Links" tab and the "Attribute Customization" section : This really is a brain-teaser... |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Are there any cycles in your dependency hierarchy? I noticed the arrows are bi-direction, wasn't sure if this is accurate or not. Currently, the Web UI doesn't support circular dependencies.