Skip to content

Instantly share code, notes, and snippets.

@wiseman17
Created November 8, 2013 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wiseman17/7369604 to your computer and use it in GitHub Desktop.
Save wiseman17/7369604 to your computer and use it in GitHub Desktop.
Real life case when "[Q] Unhandled rejection reasons (should be empty):(no stack)" warning is thrown. At least on Win7 the warning is thrown ONLY in FF, and IE
var jsCAPI = new eZ.CAPI(
'http://ez.git.local',
new eZ.SessionAuthAgent({login: "admin", password: "ezpublish"}),
{logRequests: true}
),
jsPromiseCAPI = new eZ.PromiseCAPI(jsCAPI),
promiseContentService = jsPromiseCAPI.getContentService(),
promise = promiseContentService.loadSection("/api/ezp/v2/content/sections/1111abc");
promise.then(
function (result) {
console.log(result);
},
function (error) {
console.log(error);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment