{ [Error: failed [404] [{“errorCode”:“NOT_FOUND”,“message”:“The requested resource does not exist”}]] stack: [Getter] }
Yet if I try to dump the value of e.errorCode, it says it’s undefined. I don’t understand how to parse this error object. Any help would be appreciated!
meteor debug
Set breakpoint at console.log line. Inspect the exact structure that the e variable has.
Alternative: console.log(JSON.stringify(e, null, 4));
Also shows you the same thing.
I suspect that the error has a response or body property or similar and that’s where you’ll find the errorCode, i.e. e.response.errorCode or similar.