adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Browser fails to render on adk web

Open twferrell opened this issue 1 year ago • 6 comments

On a Windows workstation, just going through the quickstart, I ran into issues immediately. When running the adk web command and navigating to localhost:8000, the application doesn't render. I checked the developer console in several browsers, including Chrome, and saw the following error:

"Loading module from 'http://localhost:8000/polyfills-FFHMD2TL.js' was blocked because of a disallowed MIME type ('text/plain')."

Additionally: "Loading module from 'http://localhost:8000/main-HWIBUY2R.js' was blocked because of a disallowed MIME type ('text/plain')."

twferrell avatar May 07 '25 16:05 twferrell

same problem

Jacob-9909 avatar May 08 '25 06:05 Jacob-9909

same problem

xiangyang749 avatar May 08 '25 09:05 xiangyang749

but you can run in the terminal

xiangyang749 avatar May 08 '25 09:05 xiangyang749

Could you try hard refresh your browser or clear cache? Looks like your browser is trying to load a cached js file. The latest js file is main-ULN5R5I5 while your browser is trying to load main-HWIBUY2R.js.

wyf7107 avatar May 09 '25 18:05 wyf7107

I solved this by referring to this solved issue:

https://github.com/google/adk-web/issues/34

Also, make sure you open your browser in incognito mode, sometimes you works in this mode but not in the normal mode.

SankaiAI avatar May 14 '25 00:05 SankaiAI

Feel free to re-open :)

wyf7107 avatar May 27 '25 18:05 wyf7107