Jwt login need help

System Information
  • Strapi Version: v3.6.2
  • Operating System:
  • Database: postgres13
  • Node Version: v14.17.0
  • NPM Version:
  • Yarn Version: 1.2

After successful deployment, according to the official documents, use post request / auth / local. 500 errors are displayed. Manually add JW t to login and get the return information. But login should not need JWT, right?
Thank you all!

0|api | [2021-05-18T03:49:26.501Z] error TypeError: Cannot read property ‘id’ of null
0|api | at module.exports (/root/api/strapi/node_modules/strapi-plugin-users-permissions/config/policies/permissions.js:69:18)
0|api | at async /root/api/strapi/node_modules/strapi-utils/lib/policy.js:68:5
0|api | at async /root/api/strapi/node_modules/strapi/lib/middlewares/parser/index.js:48:23
0|api | at async /root/api/strapi/node_modules/strapi/lib/middlewares/xss/index.js:26:9

This error occurs when the request is made

Because of my users permissions_role table is missing the Public Role,It’s let plugin find Public is Null. And role.id is lose.