# \[GITHUB PROVIDER\] TypeError: Cannot read property 'timeStarted' of undefined

**URL:** <https://drone.discourse.group/t/github-provider-typeerror-cannot-read-property-timestarted-of-undefined/10281>\
**Category:** Drone Bugs\
**Created:** [June 8, 2021, 9:00pm UTC](https://drone.discourse.group/t/github-provider-typeerror-cannot-read-property-timestarted-of-undefined/10281 "2021-06-08T21:00:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![waterdrop01](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/waterdrop01/32/5035_2.png) [@waterdrop01](https://drone.discourse.group/u/waterdrop01)\
**Post date:** [June 8, 2021, 9:00pm UTC](https://drone.discourse.group/t/github-provider-typeerror-cannot-read-property-timestarted-of-undefined/10281/1 "2021-06-08T21:00:35Z")

</div>

Hello,

I tried to connect Drone:2.0.1 to GITEA and everything worked fine. I then connected the same instance to GITHUB (changed git provider).

Could login through OAuth or sync my github repos fine.

**But I cannot open a build page (or repo page when build is ongoing) without having below error thrown in the Chrome console:**

```auto
TypeError: Cannot read property 'timeStarted' of undefined
    at main.cb7f5b7a.chunk.js:1
    at main.cb7f5b7a.chunk.js:1
    at Object.useMemo (2.57de3aee.chunk.js:2)
    at t.useMemo (2.57de3aee.chunk.js:2)
    at mo (main.cb7f5b7a.chunk.js:1)
    at ia (2.57de3aee.chunk.js:2)
    at Hu (2.57de3aee.chunk.js:2)
    at Es (2.57de3aee.chunk.js:2)
    at Os (2.57de3aee.chunk.js:2)
    at Ss (2.57de3aee.chunk.js:2)

```

The page becomes blank (page’s url looks like this \> [https://drone.my.domain/org\_name/repo\_name](https://drone.my.domain/org_name/repo_name)).  
Any idea?

Thanks a lot for your help!

Note: I tried using the admin AND a non-admin user. Both throw the same error.

Note 2: deleted the db file from inside the container, then let drone recreate /data/database.sqlite. Launched a build. Same error.

Note 3: Triggered a build on another repo (within the same org). Same blank page/error

---

<div class="post-metadata">

**Author:** ![waterdrop01](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/waterdrop01/32/5035_2.png) [@waterdrop01](https://drone.discourse.group/u/waterdrop01)\
**Post date:** [June 8, 2021, 9:52pm UTC](https://drone.discourse.group/t/github-provider-typeerror-cannot-read-property-timestarted-of-undefined/10281/2 "2021-06-08T21:52:43Z")

</div>

**I can reproduce the error on [https://cloud.drone.io](https://cloud.drone.io)** …

My .drone.yml file looks like this:

```auto
kind: pipeline
type: kubernetes
name: default

steps:
  - name: publish
    image: plugins/docker
    settings:
      username: nologin
      password:
        from_secret: registry-token
      tags:
        - latest
        - ${DRONE_TAG##v}
    when:
      event: 
        - tag

image_pull_secrets:
  - dockerconfig

```

---

<div class="post-metadata">

**Author:** ![waterdrop01](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/waterdrop01/32/5035_2.png) [@waterdrop01](https://drone.discourse.group/u/waterdrop01)\
**Post date:** [June 9, 2021, 8:22am UTC](https://drone.discourse.group/t/github-provider-typeerror-cannot-read-property-timestarted-of-undefined/10281/3 "2021-06-09T08:22:56Z")

</div>

The problem is related to the “first build” ([probably similar to this issue](https://github.com/drone/drone-ui/commit/ed66040afa32efcd63d50e2ee7eac1463e13c91d))

I fixed it by manually restarting the 1st build, through the CLI (hence creating a #2 build)thun:

```auto
drone build restart my-org/my-repo 1

```

---

<div class="post-metadata">

**Author:** ![muffl0n](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/muffl0n/32/3279_2.png) [@muffl0n](https://drone.discourse.group/u/muffl0n)\
**Post date:** [June 10, 2021, 7:27am UTC](https://drone.discourse.group/t/github-provider-typeerror-cannot-read-property-timestarted-of-undefined/10281/4 "2021-06-10T07:27:06Z")

</div>

I have the same problem while having connected Drone to Bitbucket. Downgrading to 2.0.0 does not solve this issue. Also having a second build does not change the error I get when accessing [http://drone-server/FOO/bar](http://drone-server/FOO/bar). Though I can access the builds directly: [http://drone-server/FOO/bar/1](http://drone-server/FOO/bar/1)

---

<div class="post-metadata">

**Author:** ![muffl0n](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/muffl0n/32/3279_2.png) [@muffl0n](https://drone.discourse.group/u/muffl0n)\
**Post date:** [June 10, 2021, 9:12am UTC](https://drone.discourse.group/t/github-provider-typeerror-cannot-read-property-timestarted-of-undefined/10281/5 "2021-06-10T09:12:09Z")

</div>

Maybe related to [Drone 2.0 - Opening some build status pages leads to white screen](http://discuss.harness.io/t/drone-2-0-opening-some-build-status-pages-leads-to-white-screen/8890)

---

<div class="post-metadata">

**Author:** ![muffl0n](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/muffl0n/32/3279_2.png) [@muffl0n](https://drone.discourse.group/u/muffl0n)\
**Post date:** [June 10, 2021, 9:50am UTC](https://drone.discourse.group/t/github-provider-typeerror-cannot-read-property-timestarted-of-undefined/10281/6 "2021-06-10T09:50:17Z")

</div>

My problem was: the drone-runner was not running, so no builds were executed. Now the error is gone and I can access [http://drone-server/FOO/bar](http://drone-server/FOO/bar) without any problem.  
I still think that this error (white page) should not occur, even if there are no builds running/finished.

---

<div class="post-metadata">

**Author:** ![KingzCheung](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/kingzcheung/32/5014_2.png) [@KingzCheung](https://drone.discourse.group/u/KingzCheung)\
**Post date:** [July 2, 2021, 7:03am UTC](https://drone.discourse.group/t/github-provider-typeerror-cannot-read-property-timestarted-of-undefined/10281/7 "2021-07-02T07:03:04Z")

</div>

same problem as me. .

---

<div class="post-metadata">

**Author:** ![1114](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/1114/32/6238_2.png) [@1114](https://drone.discourse.group/u/1114)\
**Post date:** [August 11, 2021, 10:20am UTC](https://drone.discourse.group/t/github-provider-typeerror-cannot-read-property-timestarted-of-undefined/10281/8 "2021-08-11T10:20:04Z")

</div>

same problem in [cloud.drone.io](http://cloud.drone.io)
