# Cannot sign in in Travis with github - SyntaxError: JSON.parse

**URL:** <https://travis-ci.community/t/cannot-sign-in-in-travis-with-github-syntaxerror-json-parse/5522>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [October 18, 2019, 8:21am UTC](https://travis-ci.community/t/cannot-sign-in-in-travis-with-github-syntaxerror-json-parse/5522 "2019-10-18T08:21:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufoscout](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ufoscout/32/2932_2.png) [@ufoscout](https://travis-ci.community/u/ufoscout)\
**Post date:** [October 18, 2019, 8:21am UTC](https://travis-ci.community/t/cannot-sign-in-in-travis-with-github-syntaxerror-json-parse/5522/1 "2019-10-18T08:21:12Z")

</div>

Hi,  
I noticed yesterday that I cannot log in any more to Travis CI. When I click on the “sign in with github” button I receive this error:

```auto
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

```

I cleaned the cache and removed all storages (cookies, local storage, session storage, index db) for both [github.com](http://github.com) and [travis-ci.org](http://travis-ci.org) but it did not solve the issue.

---

<div class="post-metadata">

**Author:** ![ufoscout](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ufoscout/32/2932_2.png) [@ufoscout](https://travis-ci.community/u/ufoscout)\
**Post date:** [October 24, 2019, 3:03pm UTC](https://travis-ci.community/t/cannot-sign-in-in-travis-with-github-syntaxerror-json-parse/5522/2 "2019-10-24T15:03:42Z")

</div>

Please, can someone provide some hints about this? I am still not able to login.  
Is there a better place for getting help for this kind of issues?

---

<div class="post-metadata">

**Author:** ![mxmlnkn](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/mxmlnkn/32/3355_2.png) [@mxmlnkn](https://travis-ci.community/u/mxmlnkn)\
**Post date:** [December 7, 2019, 6:57pm UTC](https://travis-ci.community/t/cannot-sign-in-in-travis-with-github-syntaxerror-json-parse/5522/3 "2019-12-07T18:57:09Z")

</div>

I have the same issue. Registration and the initial login one week ago still worked but not I have that problem. I can’t even log into travis-ci.community, I get

```
Authorization timed out, or you have switched browsers. Please try again.

```

I did not use Travis in any other browser between my initial signup and this error.

However, as I’m writing now here, I’ve switched browser to Opera (from Firefox) and it works there. I’ve not updated my browser or its addons inbetween the first signup and the erroneous login.

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [December 7, 2019, 7:04pm UTC](https://travis-ci.community/t/cannot-sign-in-in-travis-with-github-syntaxerror-json-parse/5522/4 "2019-12-07T19:04:22Z")

</div>

> [@ufoscout](#):
>
> I cleaned the cache and removed all storages (cookies, local storage, session storage, index db) for both [github.com](http://github.com) and [travis-ci.org](http://travis-ci.org)

Did you do the same for travis-ci. **com**?

Using a private browser window (if your browser supports such) is also useful to check if some cookies are an issue.

---

<div class="post-metadata">

**Author:** ![mxmlnkn](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/mxmlnkn/32/3355_2.png) [@mxmlnkn](https://travis-ci.community/u/mxmlnkn)\
**Post date:** [December 7, 2019, 7:46pm UTC](https://travis-ci.community/t/cannot-sign-in-in-travis-with-github-syntaxerror-json-parse/5522/5 "2019-12-07T19:46:53Z")

</div>

I solved the problem for me. The problem is containers and especially websites configured to automatically opening inside a container.

So, here I’m trying to log into Travis without any container but the login tries to query github and github is automatically opened in a new “Personal” container. The fix would be to configure github to not open automatically in any container or to simply log into Travis in the same container as you are logged in to Github.
