Skip to content
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

BaseURI decoding problem when running serve #2342

Closed
joanlamrack opened this issue Aug 23, 2018 · 3 comments
Closed

BaseURI decoding problem when running serve #2342

joanlamrack opened this issue Aug 23, 2018 · 3 comments
Labels
needs reproduction This issue is missing a minimal runnable reproduction, provided by the author

Comments

@joanlamrack
Copy link

Version

3.0.1

Node and OS info

Node 10.6.0/Ubuntu 18.04 LTS

Steps to reproduce

vue create
cd
npm run serve

What is expected?

the initial vue -cli project should be loaded when accessing localhost:8080 and behaving normally

What is actually happening?

when the localhost:8080 accessed, it seems that the vue app is not injected, resulting in blank html page.

in the terminal, it showed error::

URIError: Failed to decode param '/%3C%=%20BASE_URL%20%%3Efavicon.ico'
at decodeURIComponent ()
at decode_param (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/layer.js:172:12)
at Layer.match (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/layer.js:123:27)
at matchLayer (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:574:18)
at next (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:220:15)
at expressInit (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:317:13)
at /home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:335:12)
at next (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:275:10)
at query (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/middleware/query.js:45:5)
at Layer.handle [as handle_request] (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:317:13)
at /home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:335:12)
URIError: Failed to decode param '/%3C%=%20BASE_URL%20%%3Efavicon.ico'
at decodeURIComponent ()
at decode_param (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/layer.js:172:12)
at Layer.match (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/layer.js:123:27)
at matchLayer (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:574:18)
at next (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:220:15)
at expressInit (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:317:13)
at /home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:335:12)
at next (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:275:10)
at query (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/middleware/query.js:45:5)
at Layer.handle [as handle_request] (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:317:13)
at /home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/zephira/#JoanUbuntuData/Hacktiv8/Phase2/Week3/golb-blog-client/node_modules/express/lib/router/index.js:335:12)


weirdly enough, if you made the project in trash directory, it behaves normally.

already tried install and unistalling vue-cli few times as global

@haoqunjiang
Copy link
Member

Please provide a reproduction repo.
Also, check if this issues is relevant #1451

@haoqunjiang haoqunjiang added the needs reproduction This issue is missing a minimal runnable reproduction, provided by the author label Aug 24, 2018
@haoqunjiang
Copy link
Member

Another guess:
It may be caused by the # in your project path.

@joanlamrack
Copy link
Author

you were very right indeed, i removed the # and it works, didnt know it would caused complications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction This issue is missing a minimal runnable reproduction, provided by the author
Projects
None yet
Development

No branches or pull requests

2 participants