Topic: srclinkapp.biz/metric/ net::ERR_NAME_NOT_RESOLVED in a clean angular pro app
fodxp free asked 6 years ago
Hello MDB Support,
I am using ng-uikit-pro-standard-7.0.0 and setting up a new application following the instructions here.
https://mdbootstrap.com/docs/angular/getting-started/quick-start/
After completing all the steps and starting the application, I get the following errors.
1. I got a @angular/http not found error.
ERROR in node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/autocomplete/services/data-factory.service.d.ts(1,22): error TS2307: Cannot find module '@angular/http'.
node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard/pro/autocomplete/services/remote-data.service.d.ts(1,47): error TS2307: Cannot find module '@angular/http'.ℹ 「wdm」: Failed to compile.
I opened a ticket for this and was resolved by running
npm i --save @angular/http
2. Now the application loads fine, but when I look at the developer tools console I see a number of net::ERR_NAME_NOT_RESOLVED errors.
Some samples..
1e6ab715a3a95d4603.js:1 GET http://srclinkapp.biz/optout/get?jsonp=__twb_cb_619187533&key=1e6ab715a3a95d4603&t=1544115180571 net::ERR_NAME_NOT_RESOLVED
script @ 1e6ab715a3a95d4603.js:1
jsonp @ 1e6ab715a3a95d4603.js:1
(anonymous) @ 1e6ab715a3a95d4603.js:2
(anonymous) @ 1e6ab715a3a95d4603.js:2
ready @ 1e6ab715a3a95d4603.js:1
b @ 1e6ab715a3a95d4603.js:1
(anonymous) @ 1e6ab715a3a95d4603.js:2
(anonymous) @ 1e6ab715a3a95d4603.js:2
srclinkapp.biz/metric/?mid=&wid=52380&sid=&tid=7786&rid=LAUNCHED&t=1544115180568:1 GET http://srclinkapp.biz/metric/?mid=&wid=52380&sid=&tid=7786&rid=LAUNCHED&t=1544115180568 net::ERR_NAME_NOT_RESOLVED
I would expect the console to be clean without any errors on the first install. Moreover, this looks like a security issue as the code trying to connect to an external .biz server to post metrics. Appreciate it if this can be addressed, as I cannot have my enterprise application connect to external servers for any reason.
I am using the following repo.
npm install git+https://oauth2:<token_removed>@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git --save
Thanks!
Damian Gemza staff answered 6 years ago
Dear @fodxp
Could you please send me your clean application at d.gemza@mdbootstrap.com? Every day I'm creating new apps with MDB 7 and Angular 7, and I didn't discover a similar problem.
Best Regards,
Damian
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.3
- Device: desktop
- Browser: chrome
- OS: OSX
- Provided sample code: Yes
- Provided link: Yes