angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.3k stars 6.74k forks source link

angular.js:14525 Error: [$compile:tpload] Failed to load template: uib/template/tabs/tabset.html (HTTP status: 401 Unauthorized) #6544

Closed r3wt closed 7 years ago

r3wt commented 7 years ago

Bug description:

I am loading uibootstrap with the templates as so:

<script src="/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>

All works fine except for tabset, i get the following message:

angular.js:14525 Error: [$compile:tpload] Failed to load template: uib/template/tabs/tabset.html (HTTP status: 401 Unauthorized)

Link to minimally-working plunker that reproduces the issue:

i don't have time.

Steps to reproduce the issue:

i don't have time.

Version of Angular, UIBS, and Bootstrap

Angular: 1.6.4

UIBS: 2.5.0

Bootstrap: 3.6.x (?? unsure, its a custom build but the css is fine)

r3wt commented 7 years ago

found the cause:


$httpProvider.interceptors.push(function(){
        return {
            request: function(config){
                if(config.url.indexOf('.html') > -1){
                    config.url += '?_v='+ (new Date()).getTime();
                }
                return config;
            }
        };
    });

It was on our end.