>
> Hi Sander,
>
I do not think it is a CORS issue because I did have CORS errors in the
browser debugger console. These stopped when I added a grails plugin for
the data server.
Because of the log messages from Tomcat, I do think that is doing its job
so the problem is somewhere inside the angular call and handling the return
data. Of course having said that, it could well be that the structure of
the JSON data returned by the server is the wrong structure for Angular.
If I was to reset the angular app to use in memory web api, is there a way
of showing the JSON that is returned so that I could compare it with the
data that curl receives from the server?
Using Edge browser, this is the debug info (I have removed repeated info
SCRIPT7002: XMLHttpRequest: Network Error 0x2efd, Could not complete the
operation due to error 00002efd.
An error occurred Response with status: 0 for URL: null
main.bundle.js (22561,9)
"An error occurred"
{
[functions]: ,
__proto__: { },
_body: { },
headers: { },
ok: false,
status: 0,
statusText: "",
type: 3,
url: null
}
EXCEPTION: Uncaught (in promise): Response with status: 0 for URL: null
ORIGINAL STACKTRACE:
main.bundle.js (41416,13)
Error: Uncaught (in promise): Response with status: 0 for URL: null
at resolvePromise (http://localhost:4200/main.bundle.js:72994:25)
at resolvePromise (http://localhost:4200/main.bundle.js:72979:17)
at Anonymous function (http://localhost:4200/main.bundle.js:73027:17)
at ZoneDelegate.prototype.invokeTask
(http://localhost:4200/main.bundle.js:72799:17)
at onInvokeTask (http://localhost:4200/main.bundle.js:59333:21)
at ZoneDelegate.prototype.invokeTask
(http://localhost:4200/main.bundle.js:72799:17)
at Zone.prototype.runTask (http://localhost:4200/main.bundle.js:72701:21)
at drainMicroTaskQueue (http://localhost:4200/main.bundle.js:72933:25)
at invoke (http://localhost:4200/main.bundle.js:72873:25)
main.bundle.js (41417,13)
Unhandled Promise rejection: Response with status: 0 for URL: null ; Zone:
angular ; Task: Promise.then ; Value: Response with status: 0 for URL:
null undefined
Error: Uncaught (in promise): Response with status: 0 for URL: null
Is there anything here which is helpful?
John
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.