Getting 500 Internal Server Error while trying to call /api/methods/login in RestAPI

While trying to Login from a nuxt application to Frappe, I always call “{domain}/api/method/login” on post method.
But this time I get 500 Internal Server Error as response.
I have the latest version of frappe and already tried bench update.

Is there any suggestions on this ?

Hi,

It may help to say the operating environment. See what systemctl status nginx returns and check your nginx access and error logs for clues.

This is what I’m getting from systemctl status nginx
I don’t see anything wrong here,
Can you please check it out as well ?
Thanks.

● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2023-04-30 13:46:57 UTC; 18h ago
       Docs: man:nginx(8)
    Process: 647109 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 647124 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 647126 (nginx)
      Tasks: 5 (limit: 7094)
     Memory: 10.1M
     CGroup: /system.slice/nginx.service
             ├─647126 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
             ├─647127 nginx: worker process
             ├─647128 nginx: worker process
             ├─647129 nginx: worker process
             └─647130 nginx: worker process

Apr 30 13:46:56 srv251550 systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 30 13:46:57 srv251550 systemd[1]: Started A high performance web server and a reverse proxy server.

What does

systemctl stop supervisor
bench start # in frappe dir

give you?

Thank you so much

We found the problem there and fixed it.