Skip to content

SvelteKitError: Not found: /.well-known/appspecific/com.chrome.devtools.json #13743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ianengelbrecht opened this issue Apr 26, 2025 · 12 comments · May be fixed by #13830
Open

SvelteKitError: Not found: /.well-known/appspecific/com.chrome.devtools.json #13743

ianengelbrecht opened this issue Apr 26, 2025 · 12 comments · May be fixed by #13830

Comments

@ianengelbrecht
Copy link

Describe the bug

I'm suddently getting this in my terminal during dev mode. No idea what's caused it or whether it's actually impacting anything. I am reading a value from localStorage in my root +layout.json file, but that's the only interaction with localstorage in the app, other than setting that value on user sign in.

Best of luck...

SvelteKitError: Not found: /.well-known/appspecific/com.chrome.devtools.json
at resolve (C:\devprojects\learning\pwa-ktt\node_modules@sveltejs\kit\src\runtime\server\respond.js:582:13)
at C:\devprojects\learning\pwa-ktt\node_modules@sveltejs\kit\src\runtime\server\respond.js:370:7
at AsyncLocalStorage.run (node:internal/async_local_storage/async_hooks:91:14)
at with_event (C:\devprojects\learning\pwa-ktt\node_modules@sveltejs\kit\src\runtime\app\server\event.js:49:20)
at resolve (C:\devprojects\learning\pwa-ktt\node_modules@sveltejs\kit\src\runtime\server\respond.js:369:6)
at init_promise.#options.hooks.handle (C:\devprojects\learning\pwa-ktt\node_modules@sveltejs\kit\src\runtime\server\index.js:76:56)
at C:\devprojects\learning\pwa-ktt\node_modules@sveltejs\kit\src\runtime\server\respond.js:364:18
at AsyncLocalStorage.run (node:internal/async_local_storage/async_hooks:91:14)
at with_event (C:\devprojects\learning\pwa-ktt\node_modules@sveltejs\kit\src\runtime\app\server\event.js:49:20)
at respond (C:\devprojects\learning\pwa-ktt\node_modules@sveltejs\kit\src\runtime\server\respond.js:363:26) {
status: 404,
text: 'Not Found'
}

Reproduction

I wouldn't now how to provide a reproduction for this other than providing my actual repo, because I don't know what originally caused this issue.

Logs

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 13th Gen Intel(R) Core(TM) i5-1345U
    Memory: 18.01 GB / 31.66 GB
  Binaries:
    Node: 22.13.1 - C:\nvm4w\nodejs\node.EXE
    npm: 10.9.2 - C:\nvm4w\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (129.0.2792.89)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    @sveltejs/adapter-auto: ^4.0.0 => 4.0.0 
    @sveltejs/kit: ^2.16.0 => 2.20.3 
    @sveltejs/vite-plugin-svelte: ^5.0.0 => 5.0.3 
    svelte: ^5.0.0 => 5.25.6 
    vite: ^6.0.0 => 6.2.4

Severity

annoyance

Additional Information

No response

@Conduitry
Copy link
Member

Conduitry commented Apr 26, 2025

Sounds like Chrome dev tools making these requests - https://goo.gle/devtools-json-design - which would mean there's nothing for us to fix.

@Conduitry Conduitry closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2025
@benquan
Copy link

benquan commented May 4, 2025

Related:
https://www.reddit.com/r/node/comments/1kcr0wh/odd_request_coming_into_my_localhost_server_from/

To suppress with hooks:

// hooks.server.ts
import type { Handle } from '@sveltejs/kit';

export const handle: Handle = async ({ event, resolve }) => {

	if (
		event.url.pathname.startsWith(
			'/.well-known/appspecific/com.chrome.devtools'
		)
	) {
		return new Response(null, { status: 204 }); // Return empty response with 204 No Content
	}

return await resolve(event);

};

Or create the file according to
https://chromium.googlesource.com/devtools/devtools-frontend/+/main/docs/ecosystem/automatic_workspace_folders.md

I had to create it in static for it to work.

@groundbirdaircat
Copy link

In addition to the suggestions provided above by @benquan I noticed at the bottom of the page he linked it mentions a vite plugin that also does the trick.

This feature allows you to use workspaces in Chrome DevTools so you can save changes to local files from the DevTools window.

I'm uninstalling my current IDE, and DevTools will be my new main, who's with me ;)

@srt1104
Copy link

srt1104 commented May 9, 2025

As mentioned in the Reddit link shared by @benquan:

It’s a request made by Chrome DevTools itself as part of this feature: https://chromium.googlesource.com/devtools/devtools-frontend/+/main/docs/ecosystem/automatic_workspace_folders.md.

I was able to resolve the issue by navigating to chrome://flags and disabling the DevTools Project Settings. I also disabled DevTools Automatic Workspace Folders since it’s closely related.

Image

@ImalKesara
Copy link

@srt1104 Thank you, Btw is it going to be a problem in future ?

peterpeterparker added a commit to peterpeterparker/papyrs-wip that referenced this issue May 12, 2025
@anxpara
Copy link

anxpara commented May 14, 2025

I'm still getting this error with sveltekit 2.21.0 and vite 6.3.5, should i wait for the next sveltekit version?
I'm gonna disable the setting in chrome for now.

@ianengelbrecht
Copy link
Author

ianengelbrecht commented May 14, 2025 via email

@xgwang-scienceos
Copy link

Thanks for the flag disable solution: @srt1104

One caveat: I had to restart chrome after disabling flags for it to work

@applemate
Copy link

Image

same problem

@Rich-Harris
Copy link
Member

Given how prevalent this is (I encounter it constantly) and how annoying it is, I think it would be reasonable to do something about it, even if that's just suppressing errors in dev to prevent console spam

@Rich-Harris Rich-Harris reopened this May 26, 2025
@Rich-Harris Rich-Harris linked a pull request May 26, 2025 that will close this issue
6 tasks
@dufu1991
Copy link

I'm using the Brave browser, and the terminal keeps prompting this error, and it's hard to see the other error messages that I need.

@VCCICCV
Copy link

VCCICCV commented May 29, 2025

First

npm install -D vite-plugin-devtools-json

Then in the vite configuration,vite.config.ts

import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import devtoolsJson from "vite-plugin-devtools-json";
export default defineConfig({
  plugins: [sveltekit(),devtoolsJson()],
});

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 a pull request may close this issue.