Repository navigation
Closed
Labels
more-info-neededThe submitter needs to provide more information about the issue
Description
Description
Hi,
Today I updated manually GitHub Desktop on Windows, from version 1.0.8 to 1.0.9.
After relaunching, I got the following error:
Unexpected token � in JSON at position 0.
It happens every time I launch GitHub Desktop.
Here is a screenshot: http://prntscr.com/hdetun
Note that it hasn't happened before.
Thanks.
Version
GitHub Desktop version: [1.0.9]
OS version: [Windows 10 Home version:1709]
Steps to Reproduce
- Update manually by going to: Help->About GitHub Desktop -> Check for updates.
- Install update and wait for relaunch (the program relaunches by itself).
Expected behavior: No error.
Actual behavior: Error at program's launch
Reproduces how often: [100%]
Logs
2017-11-21T17:45:25.594Z - info: [ui] [AppStore] loading 1 repositories from store
2017-11-21T17:45:25.597Z - info: [ui] [AppStore] found account: LSmyrnaios (Lampros A. Smyrnaios)
2017-11-21T17:45:27.478Z - warn: [ui] Unable to deserialize JSON string to object [object Response]
SyntaxError: Unexpected token � in JSON at position 0
2017-11-21T17:45:27.479Z - warn: [ui] fetchPullRequests: failed for repository wheatvivo/datasources
SyntaxError: Unexpected token � in JSON at position 0
2017-11-21T17:45:27.480Z - warn: [ui] Error refreshing pull requests for 'datasources'
SyntaxError: Unexpected token � in JSON at position 0
2017-11-21T17:45:27.493Z - warn: [ui] Unable to deserialize JSON string to object [object Response]
TypeError: Failed to fetch
2017-11-21T17:45:27.495Z - warn: [ui] fetchMentionables: failed for wheatvivo/datasources
TypeError: Failed to fetch
2017-11-21T17:45:27.894Z - info: [ui] launching: 1.0.9 (Windows 10.0.16299)
Metadata
Metadata
Assignees
Labels
more-info-neededThe submitter needs to provide more information about the issue
Activity
shiftkey commentedon Nov 22, 2017
@LSmyrnaios I'd love to see what the response body is for these requests - maybe something is intercepting the request and serving up different, non-JSON content?
Here's what I'd like to try:
If you find something interesting, could you attach that here?
LSmyrnaios commentedon Nov 22, 2017
@shiftkey It seems that there is no response for data:image requests.
Here are the screenshots:
Headers: http://prntscr.com/hdstfj
Response: http://prntscr.com/hdsuai
LSmyrnaios commentedon Nov 22, 2017
Here is what's written in the console window when I try to switch from adminapp repository to datasources:
http://prntscr.com/hdsxi6
shiftkey commentedon Nov 22, 2017
@LSmyrnaios the details from your first reply are what I was looking for, but instead of looking at images are you able to see the response for
usersordatasourceswhen you switch to it?LSmyrnaios commentedon Nov 23, 2017
These are the screenshots for "users":
Headers1: http://prntscr.com/he6rbn
Headers2: http://prntscr.com/he6t4k
Response: http://prntscr.com/he6scf
These are for "datasources":
Headers1: http://prntscr.com/he6so0
Headers2: http://prntscr.com/he6szl
Response:
shiftkey commentedon Nov 23, 2017
@LSmyrnaios that's interesting - so it's working now? Are you able to reproduce the error at all?
LSmyrnaios commentedon Nov 24, 2017
@shiftkey Nope, it keeps doing the same thing when I am starting the program with "datasources" repository or trying to switch to it from "adminapp" repository.
Here is a screenshot from the Network tab, showing the indication "failed" for "users".
http://prntscr.com/hepn2d
The "Headers" and "Response" are the same as the ones appearing on the previous screenshots that I sent you.
shiftkey commentedon Nov 26, 2017
I'm still kind of puzzled, because this screenshot does show the error, rather than a 304:
But the response header in here suggests it's a 304 like the earlier requests:
Stepping back: a
304 Not Modifiedisn't supposed to return any content in the response body, but then it's trying to deserialize something that's supposed to be locally cached by the browser (and failing). Maybe we just need to be less trusting of the locally cached content when deserializing?