Ma63d / kov-blog

A blog platform built with koa,vue and mongoose. 使用 koa ,vue 和 mongo 搭建的博客页面和支持markdown语法的博客编写平台,自动保存草稿。博客地址:https://chuckliu.me
MIT License
636 stars 103 forks source link

login error on linux (mongodb has started ) #17

Closed Hellowor1d closed 7 years ago

Hellowor1d commented 7 years ago

system: linuxmint db: sudo service mongod start //(has started) when I click the button to login:

TypeError: Failed to fetch
Uncaught (in promise) TypeError: Cannot read property 'error' of undefined
at eval (eval at (app.js:1341), :39:46)

I'm new to vuex ,dont know what caused the err _039

Ma63d commented 7 years ago

Recently, I've received msg from another user of kov-blog telling me the same error too. And I'm absolutely sure the problem is that either you did not run the server or the server running failed, which maybe caused by mongodb connection error. If you already run npm run dev-server in your terminal, you will find in the terminal output that the server start failed,then try to restart , and then fail again, constantly. So, maybe you didn't install mongodb, something wrong happens when installing or you changed the port of mongodb. Run mongo for more detail.

Hellowor1d commented 7 years ago

@Ma63d
Actually you're right. Thanks a lot for your reply ! and kov-blog is a wonderful repo to learn koa & vue project :+1: (Uh...may I have your Wechat for better communication ?sincerely~)

Ma63d commented 7 years ago

@Hellowor1d Thx. So honored to hear that kov-blog helps some front end learners. My email is chuck7liu#gmail.com. Let 's contact with email about wechat acct.

Hellowor1d commented 7 years ago

great ! now you can close the issue and I have sent email to you