prompt-engineering / chat-flow

ChatFlow - AI-based chat flow framework, personalize your ChatGPT workflows and build the road to automation。ChatFlow —— 打造个性化 ChatGPT 流程,构建自动化之路
https://prompt.phodal.com
MIT License
652 stars 70 forks source link

`npm run dev` but server didn't start #6

Open tsunhua opened 1 year ago

tsunhua commented 1 year ago

Describe the bug I attempted to run the project using "npm run dev", but the server did not start. Although the terminal printed some logs, no error messages were displayed. Here are the logs:

 npm run dev

> chat-flow@0.1.0 dev
> npm run prepare:data && cross-env NODE_ENV='development' next dev

> chat-flow@0.1.0 prepare:data
> node gen/generate-chatgpt-by-category.js

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Loaded env from /Users/xxx/project/chat-flow/.env
warn  - You have enabled experimental feature (appDir) in next.config.js.
warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.

info  - Thank you for testing `appDir` please leave your feedback at https://nextjs.link/app-feedback
(node:62230) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

(base) 

To Reproduce According the guide

Expected behavior The server started

Screenshots none

Desktop (please complete the following information):

phodal commented 1 year ago

it looks good had you try visit http://0.0.0.0:3000

tsunhua commented 1 year ago

When I visit http://0.0.0.0:3000/, it displays HTTP ERROR 502. I tried executing the following command to check if there were any processes listening on port 3000, but nothing was returned.

$ lsof -i:3000
phodal commented 1 year ago

here is my log, it seems same to yours

> chat-flow@0.1.0 dev
> npm run prepare:data && cross-env NODE_ENV='development' next dev

> chat-flow@0.1.0 prepare:data
> node gen/generate-chatgpt-by-category.js

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Loaded env from /Volumes/source/ai/chat-flow/.env
warn  - You have enabled experimental feature (appDir) in next.config.js.
warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.

info  - Thank you for testing `appDir` please leave your feedback at https://nextjs.link/app-feedback
(node:8079) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
event - compiled client and server successfully in 11.2s (262 modules)
wait  - compiling...
event - compiled client and server successfully in 1065 ms (262 modules)