Skip to content

Conversation

@yafred
Copy link
Contributor

@yafred yafred commented Jan 15, 2025

http://localhost:9663/dyIwz6fAsgek - {"SyntaxError":"JSON.parse: unexpected end of data at line 1 column 1 of the JSON data","stack":""} [permalog.ts:58:12](http://localhost:9663/ui/common/src/permalog.ts)
Uncaught (in promise) SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

xhr.setNote() eventually expects a valid json response

/* fetch a JSON value */
export const json = (url: string, init: RequestInit = {}): Promise<any> =>
  jsonAnyResponse(url, init).then(res => ensureOk(res).json());

@yafred yafred marked this pull request as ready for review January 15, 2025 19:31
@ornicar ornicar merged commit 333d09f into lichess-org:master Jan 16, 2025
4 checks passed
@yafred yafred deleted the write-note-console-error branch January 16, 2025 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants