kErrorUnknown

57 views
Skip to first unread message

Raymond Camden

unread,
Jun 4, 2026, 5:24:28 PMJun 4
to Chrome Built-in AI Early Preview Program Discussions
I've got a dumb little demo that's having an odd result - consistently. 

The idea was a 'fake' social media site for cats where each post content is generated by the Prompt API. 

On the application starting, I get 10 of these and every time I run it I see the same thing.

In the first iteration, it works perfectly.

In the second, I get: 

UnknownError: An unknown error occurred: kErrorUnknown
getPostContent @ app.js:158
await in getPostContent
loadFeed @ app.js:207
await in loadFeed
(anonymous) @ app.js:227

And then it runs iterations 3-10 just fine. That leads me to think it's my fault somewhere, but the kErrorUnknown seems weird.

And the source is here: https://github.com/cfjedimaster/webdemos/tree/master/scratchingpost

To be clear, there's some cleanup the app needs, but running 10 calls one after the other shouldn't be a problem I'd assume... right? (And yeah, eventually I need to clone the initial session but again, with 10 iterations I didn't expect an issue.)

Kenji Baheux

unread,
Jun 4, 2026, 7:26:29 PMJun 4
to Raymond Camden, Chrome Built-in AI Early Preview Program Discussions
Hi Raymond,

As a human currently supervised by a cat, I feel personally targeted by this brilliant demo and your report 😅.

A pink avatar with a cat face is next to text that reads "Cosmo the Cool @CosmoTheCat". The text includes a timestamp and a caption about supervising humans, followed by hashtags.
It turns out I had a similar issue with my YNAB receipt porter: live version (tuned for JP receipts), github. In the original version, I just kicked prompts for each receipt and let the browser manage the queue. Recently, however, I started getting errors for some of the receipts while others worked fine.

The team filed a bug report and would love more details and repros.
I added your feedback to the bug report.

In the meantime, you may want to manage your own queue. In my case, I changed the code to process one prompt at a time but it's possible that the issue only triggers after more than x prompts are in the browser queue.

If you have the time to test a self managed queue, let us know if there is a threshold where the error always occurs.

Thanks again for building such a fun project, and for the feedback!


--
You received this message because you are subscribed to the Google Groups "Chrome Built-in AI Early Preview Program Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chrome-ai-dev-previe...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chrome-ai-dev-preview-discuss/b5bc03e0-76b8-4264-b2f2-5d5e36d6de26n%40chromium.org.


--
Kenji BAHEUX (my how-to)
Product Manager - Chrome
Google Japan

Thomas Steiner

unread,
Jun 5, 2026, 4:45:08 AMJun 5
to Kenji Baheux, Raymond Camden, Chrome Built-in AI Early Preview Program Discussions
I shared this with Kenji as well, so likewise can share it further. I keep a bookmark to this deep-link for a `limit()` function that lets you specify n tasks that should be run in parallel. Here's a quick no-frills demo that shows this in action (open the console). Try playing with different `maxTasks` values.  



--
Thomas Steiner, PhD—Developer Relations Engineer (blog.tomayac.comtoot.cafe/@tomayac)

Google Spain, S.L.U.
Torre Picasso, Pl. Pablo Ruiz Picasso, 1, Tetuán, 28020 Madrid, Spain

CIF: B63272603
Inscrita en el Registro Mercantil de Madrid, sección 8, Hoja M­-435397 Tomo 24227 Folio 25

----- BEGIN PGP SIGNATURE -----
Version: GnuPG v2.4.8 (GNU/Linux)

iFy0uwAntT0bE3xtRa5AfeCheCkthAtTh3reSabiGbl0ck
0fjumBl3DCharaCTersAttH3b0ttom.xKcd.cOm/1181.
----- END PGP SIGNATURE -----

Raymond Camden

unread,
Jun 5, 2026, 9:22:18 AMJun 5
to Thomas Steiner, Kenji Baheux, Chrome Built-in AI Early Preview Program Discussions
To be clear though, I'm running the prompts sequentially, not in parallel. (It would be better for the initial feed to get all 10 at once, but I started simple.)
--
===========================================================================
Raymond Camden

Email : raymon...@gmail.com
Blog : www.raymondcamden.com

Raymond Camden

unread,
Jun 6, 2026, 10:59:07 AMJun 6
to Thomas Steiner, Kenji Baheux, Chrome Built-in AI Early Preview Program Discussions
FWIW, brand new machine, first time it downloaded the prompt model, I'm not getting the error at all. 

Thomas Steiner

unread,
Jun 8, 2026, 3:47:02 AMJun 8
to Raymond Camden, Thomas Steiner, Kenji Baheux, Chrome Built-in AI Early Preview Program Discussions
Got it, thanks, Ray! If you find a reproducible case, please file a new bug report and let us know the URL here, so I can help triage and people interested/affected can star the bug.

Cheers,
Tom

Алла Цис

unread,
Jun 8, 2026, 1:19:24 PMJun 8
to Thomas Steiner, Raymond Camden, Kenji Baheux, Chrome Built-in AI Early Preview Program Discussions
Дякую, Томасе та Кенджі, за ваші міркування.

Хоча я запускаю запити послідовно (не паралельно), я схиляюся до думки Кенджі, що проблема все ж таки може бути пов'язана з тим, як браузер керує внутрішньою чергою Prompt API. Можливо, незважаючи на послідовний виклик, друга ітерація потрапляє у певну точку насичення черги, перш ніж перша повністю завершується.

Я продовжу спостерігати за поведінкою. Якщо помилка знову з'явиться, я спробую керувати власною чергою, щоб перевірити цю гіпотезу, і подам новий звіт, як ви просили.Варіант 2: Фокус на відсутності відтворення помилки

пн, 8 черв. 2026 р., 10:47 користувач 'Thomas Steiner' via Chrome Built-in AI Early Preview Program Discussions <chrome-ai-dev-...@chromium.org> пише:
Reply all
Reply to author
Forward
0 new messages