File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
- import { Vaultifier , VaultMinMeta , VaultPostItem } from 'vaultifier/dist/main' ;
1
+ import { Vaultifier , VaultMinMeta , VaultPostItem , parsePostResult } from 'vaultifier/dist/main' ;
2
2
import { Cache } from './cache' ;
3
3
import { logger } from './logger' ;
4
- import { parsePostResult } from 'vaultifier' ;
5
4
6
5
// const DEFAULT_REPO = 'http://localhost:8080';
7
6
export const DEFAULT_REPO = 'https://soya.ownyourdata.eu' ;
@@ -72,7 +71,12 @@ export class RepoService {
72
71
if ( ! v ) {
73
72
logger . debug ( `Initializing vaultifier: ${ this . repo } ` ) ;
74
73
this . _vaultifier = v = new Vaultifier ( this . repo ) ;
75
- await v . initialize ( ) ;
74
+ try {
75
+ await v . initialize ( ) ;
76
+ // catch all errors that arise due to authentication issues
77
+ // currently we don't care about these errors
78
+ // as most things in soya are not authenticated
79
+ } catch { }
76
80
}
77
81
78
82
return v ;
You can’t perform that action at this time.
0 commit comments