You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle api explorer routing error (#12354) (#12385)
* Handle api explorer routing error
- For some reason when routing is done during async process, router transtionTo throws the TransitionAbortedError
- As a fix treat this particular error as success since it doesn't interfere in the routing
- Reference: emberjs/ember-test-helpers#332
* Added changelog
'Welcome to the Vault API explorer! \nYou can search for endpoints, see what parameters they accept, and even execute requests with your current token.';
110
+
if(filter){
111
+
content=`Welcome to the Vault API explorer! \nWe've filtered the list of endpoints for '${filter}'.`;
'Welcome to the Vault API explorer! \nYou can search for endpoints, see what parameters they accept, and even execute requests with your current token.';
115
-
if(filter){
116
-
content=`Welcome to the Vault API explorer! \nWe've filtered the list of endpoints for '${filter}'.`;
117
-
}
118
117
this.logAndOutput(null,{
119
118
type: 'success',
120
119
content,
121
120
});
122
121
}catch(error){
123
-
this.logAndOutput(null,{
124
-
type: 'error',
125
-
content: 'There was a problem navigating to the api explorer.',
126
-
});
122
+
if(error.message==='TransitionAborted'){
123
+
this.logAndOutput(null,{
124
+
type: 'success',
125
+
content,
126
+
});
127
+
}else{
128
+
this.logAndOutput(null,{
129
+
type: 'error',
130
+
content: 'There was a problem navigating to the api explorer.',
0 commit comments