Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Uncaught Exception: Error on Mac

Closed
#5,187 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@youknowriad is already working on this.

Since Oct 21, 2026.

  • #5248 by @youknowriad — merged

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
electron, typescript, wordpress
Domain
backend, desktop

Research direction

Start at parseJsonFromPhpOutput, shown in the stack trace in the packaged app, and trace where the Studio app reads PHP process output. Reproduce the startup error and inspect the output beginning with [notice X 0] to find why it is parsed as JSON. Done when opening the app no longer raises the exception and the reported AI operation works.

Written by the indexing model from the issue text.

Description

Quick summary

I am receiving the following error when i open the app

The AI credits are being used but it seems nothing is actually being done:

Uncaught Exception:
SyntaxError: Unexpected token 'o', "[notice X 0]"... is not valid JSON
at JSON.parse ()
at parseJsonFromPhpOutput (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:22785:14)
at TypedEventEmitter. (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:22807:49)
at TypedEventEmitter.emit (node:events:514:28)
at TypedEventEmitter.emit (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:25446:16)
at ChildProcess. (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:25573:36)
at ChildProcess.emit (node:events:514:28)
at maybeClose (node:internal/child_process:1141:16)
at Socket. (node:internal/child_process:498:11)
at Socket.emit (node:events:514:28)

Steps to reproduce
  1. Open the Studio App
  2. The error continues to appear
What you expected to happen

The error should not be showing

What actually happened

The error shows

Image
App or CLI?

Studio App

Version

2.0.0

Impact

All

Available workarounds?

No and the app is unusable

Platform

No response

Architecture

None

Logs or notes

Uncaught Exception:
SyntaxError: Unexpected token 'o', "[notice X 0]"... is not valid JSON
at JSON.parse ()
at parseJsonFromPhpOutput (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:22785:14)
at TypedEventEmitter. (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:22807:49)
at TypedEventEmitter.emit (node:events:514:28)
at TypedEventEmitter.emit (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:25446:16)
at ChildProcess. (/Applications/Studio.app/Contents/Resources/app.asar/dist/main/index.js:25573:36)
at ChildProcess.emit (node:events:514:28)
at maybeClose (node:internal/child_process:1141:16)
at Socket. (node:internal/child_process:498:11)
at Socket.emit (node:events:514:28)

Dominant language
TypeScript
Stars
543
Forks
104
Avg merge
20h 37m
Merged PRs (30d)
334

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Automattic/studio

All issues in Automattic/studio

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.