Question: So yesterday I was developing some sort of offline functionality. Therefore, I added an ApiService that returns Observables. 
Currently, I fetch my access\_token for jwt-Authentication and then use this token to generate Headers for my API-Request. After a successful request, I save the result to my storage. This works fine. Now here is the problem I want to check for an unsuccessful request (e.g. servers are down, app is offline) and then return my stored result from storage. But I can't get it to work.

Here is my code:

```
  getJobs(): Observable<any> {
    this.auth.checkToken()
    return from(this.storage.get(ACCESS_TOKEN)).pipe(
      switchMap(token => {
        let options = this.auth.addToken(token)
        return this.http.get(API_URL + "jobs", options)
      }),
      map(res => {
          if (res) {
            this.storage.set(JOBS, res)
            return res
          } else {
            return from(this.storage.get(JOBS))
          }
      }),
      catchError(() => {
        return from(this.storage.get(JOBS))
      })
    )
  }

```

Further investigations have shown that after the server or the app is offline neither the map() nor the catchError() functions were executed.

**UPDATE:**
The solution provided by DJ House is correct. My Code works perfectly in my browser but if I build my app with `ionic cordova build android` it gets stuck after the `this.http.get(...)` So it's clearly and issue with cordova

**SOLUTION:**
Wow! Something magical happened! I've found out that the catchError method gets called BUT after almost 2 Minutes, which is way to slow... So I will implement a timeout.

Thanks
flixoflax

Answer: 
it helped me

```
yum update -y libstdc++.x86_64
yum install libstdc++.i686

```
do you have try this

yum update --setopt=protected\_multilib=false