Git Product home page Git Product logo

Comments (7)

lizheming avatar lizheming commented on June 12, 2024

可以进 Vercel 后台通过 Runtime Log 找下 /api/user/password 的请求日志,看下有没有什么报错。


You can enter the Vercel background and find the request log of /api/user/password through the Runtime Log to see if there is any error.

from waline.

undefined-hestudio avatar undefined-hestudio commented on June 12, 2024

@lizheming 我是使用docker私有部署的,没有vercel日志。只有控制台输出

�[33m[2023-06-03T14:03:36.582] [14] [WARN]�[39m - [Deprecated] /article API will be deprecated in the next major version, please don't use it anymore. If you are using `@waline/client` please upgrade to `@waline/client@3`. For other scenarios, you can use `/api/article` to replace it.
�[33m[2023-06-03T14:03:36.583] [14] [WARN]�[39m - [Deprecated] /comment API will be deprecated in the next major version, please don't use it anymore. If you are using `@waline/client` please upgrade to `@waline/client@3`. For other scenarios, you can use `/api/comment` to replace it.
�[32m[2023-06-03T14:03:36.586] [14] [INFO]�[39m - SQL: SELECT * FROM `wl_Counter` WHERE ( `url` = '/talking/' ), Time: 3ms
�[32m[2023-06-03T14:03:36.589] [14] [INFO]�[39m - SQL: SELECT COUNT(*) AS think_count FROM `wl_Comment` WHERE ( `url` = '/talking/' ) AND ( `status` NOT IN ('waiting','spam') ) LIMIT 1, Time: 5ms
�[32m[2023-06-03T14:03:36.593] [14] [INFO]�[39m - SQL: SELECT `status`,`comment`,`insertedAt`,`link`,`mail`,`nick`,`pid`,`rid`,`ua`,`ip`,`user_id`,`sticky`,`like`,`id` FROM `wl_Comment` WHERE ( `url` = '/talking/' ) AND ( `status` NOT IN ('waiting','spam') ) ORDER BY `insertedAt` DESC, Time: 4ms
�[32m[2023-06-03T14:03:36.597] [14] [INFO]�[39m - SQL: SELECT `display_name`,`email`,`url`,`type`,`avatar`,`label`,`id` FROM `wl_Users` WHERE ( `id` IN (1,50,32,27,2,19,10) ), Time: 3ms
�[33m[2023-06-03T14:03:36.615] [14] [WARN]�[39m - [Deprecated] /article API will be deprecated in the next major version, please don't use it anymore. If you are using `@waline/client` please upgrade to `@waline/client@3`. For other scenarios, you can use `/api/article` to replace it.
�[33m[2023-06-03T14:03:36.801] [14] [WARN]�[39m - [Deprecated] /article API will be deprecated in the next major version, please don't use it anymore. If you are using `@waline/client` please upgrade to `@waline/client@3`. For other scenarios, you can use `/api/article` to replace it.
�[32m[2023-06-03T14:03:36.808] [14] [INFO]�[39m - SQL: SELECT * FROM `wl_Counter` WHERE ( `url` = '/talking/' ), Time: 6ms
�[32m[2023-06-03T14:03:36.810] [14] [INFO]�[39m - SQL: SELECT * FROM `wl_Counter` WHERE ( `id` = 8 ), Time: 2ms
�[32m[2023-06-03T14:03:36.821] [14] [INFO]�[39m - SQL: UPDATE `wl_Counter` SET `time`=418 WHERE ( `id` = 8 ), Time: 11ms
�[32m[2023-06-03T14:04:52.022] [14] [INFO]�[39m - SQL: SELECT * FROM `wl_Users` WHERE ( `github` = 'heStudio-Network' ), Time: 2ms
�[32m[2023-06-03T14:04:54.476] [14] [INFO]�[39m - SQL: SELECT * FROM `wl_Users` WHERE ( `github` = 'heStudio-Network' ), Time: 2ms

from waline.

lizheming avatar lizheming commented on June 12, 2024

#1917 应该和这个是一个问题,nginx 代理配置需要修改一下

from waline.

undefined-hestudio avatar undefined-hestudio commented on June 12, 2024

我检查了反代的配置项,不存在那个问题,下面是反代配置文件


#PROXY-START/

location ^~ /
{
    proxy_pass http://127.0.0.1:8360;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header REMOTE-HOST $remote_addr;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_http_version 1.1;
    # proxy_hide_header Upgrade;

    add_header X-Cache $upstream_cache_status;

    #Set Nginx Cache
    
    
    set $static_fileGY7q4YJ8 0;
    if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
    {
    	set $static_fileGY7q4YJ8 1;
    	expires 1m;
        }
    if ( $static_fileGY7q4YJ8 = 0 )
    {
    add_header Cache-Control no-cache;
    }
}

#PROXY-END/

I checked the anti-generation configuration item, there is no such problem, the following is the anti-generation configuration file


#PROXY-START/

location ^~ /
{
    proxy_pass http://127.0.0.1:8360;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header REMOTE-HOST $remote_addr;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_http_version 1.1;
    # proxy_hide_header Upgrade;

    add_header X-Cache $upstream_cache_status;

    #Set Nginx Cache
    
    
    set $static_fileGY7q4YJ8 0;
    if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
    {
    set $static_fileGY7q4YJ8 1;
    expires 1m;
        }
    if ( $static_fileGY7q4YJ8 = 0 )
    {
    add_header Cache-Control no-cache;
    }
}

#PROXY-END/

from waline.

lizheming avatar lizheming commented on June 12, 2024

加一下这个 proxy_set_header X-Forwarded-Proto $scheme;

from waline.

undefined-hestudio avatar undefined-hestudio commented on June 12, 2024

可以登录了,但是邮箱还是发不出去,控制台报错如下

[32m[2023-06-03T16:38:29.827] [14] [INFO][39m - SQL: SELECT * FROM `wl_Users` WHERE ( `email` = '[email protected]' ), Time: 2ms
Error: Unexpected socket close at Timeout._onTimeout (/app/node_modules/nodemailer/lib/smtp-transport/index.js:190:31) at listOnTimeout (node:internal/timers:569:17) at processTimers (node:internal/timers:512:7)

You can log in, but the email still cannot be sent out, and the console reports the following error

[32m[2023-06-03T16:38:29.827] [14] [INFO][39m - SQL: SELECT * FROM `wl_Users` WHERE ( `email` = '[email protected]' ), Time: 2ms
Error: Unexpected socket close at Timeout._onTimeout (/app/node_modules/nodemailer/lib/smtp-transport/index.js:190:31) at listOnTimeout (node:internal/timers:569:17) at processTimers (node:internal /timers:512:7)

from waline.

lizheming avatar lizheming commented on June 12, 2024

看起来是邮箱服务连接超时了…具体原因得你自己看下了


It seems that the email service connection timed out... The specific reason is up to you

from waline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.