Skip to content

The service stopped unexpectedly, showing url concatenation error #466

@Arming03

Description

@Arming03

What operating system are you using?

Linux

What browser are you using?

Chrome

Describe the bug

code: 'ERR_INVALID_URL',
input: 'http://127.0.0.1:5002http://127.0.0.1:5002/authentication/login/'
Error navigation: /node_modules/astro/dist/vite-plugin-astro-server/request.js
16 lines, I can't find the error source

What prompt did you enter?

No response

Console Logs

TypeError: Invalid URL
at URL (node:internal/url:816:29)
at handleRequest (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/astro@2.7.0_@types[email protected][email protected]/node_modules/astro/dist/vite-plugin-astro-server/request.js:16:15)
at astroDevHandler (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/astro@2.7.0_@types[email protected][email protected]/node_modules/astro/dist/vite-plugin-astro-server/plugin.js:42:11)
at call (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50613:7)
at next (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50557:5)
at viteServeStaticMiddleware (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:47600:20)
at call (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50613:7)
at next (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50557:5)
at viteServeRawFsMiddleware (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:47660:13)
at call (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50613:7)
at next (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50557:5)
at viteTransformMiddleware (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:64410:9)
at call (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50613:7)
at next (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50557:5)
at file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:47453:28
at viteServePublicMiddleware (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:47583:9)
at call (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50613:7)
at next (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50557:5)
at next (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50535:14)
at viteProxyMiddleware (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:64063:9)
at call (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50613:7)
at next (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50557:5)
at cors (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:51085:7)
at file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:51121:17
at originCallback (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:51111:15)
at file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:51116:13
at optionsCallback (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:51096:9)
at corsMiddleware (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:51101:7)
at call (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50613:7)
at next (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50557:5)
at file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/[email protected]_vite@4.4.9_@types[email protected][email protected]__workbox-build@7.0.0_@type_qc4xysiskylmgudmics3ope2dq/node_modules/vite-plugin-pwa/dist/index.js:666:13
at call (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50613:7)
at next (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50557:5)
at next (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50535:14)
at next (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50535:14)
at file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/@unocss[email protected][email protected]_vite@4.4.9_@types[email protected][email protected]_/node_modules/@unocss/vite/dist/index.mjs:1268:20
at call (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50613:7)
at next (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50557:5)
at Function.handle (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50560:3)
at Server.app (file:///data/11041/xiaoruiAI_UI/node_modules/.pnpm/vite@4.4.9_@types[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-df561101.js:50425:37)
at Server.emit (node:events:507:28)
at parserOnIncoming (node:_http_server:1146:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17) {
code: 'ERR_INVALID_URL',
input: 'http://127.0.0.1:5002http://127.0.0.1:5002/authentication/login/'
}

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions