nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block in D:\programming\nginx-1.27.2/conf/nginx.conf:36
а обработчика для /api/category/ я там не вижу
location ~* ^/api/(business|category)
category_access.log
у меня пустой/nginx/log/access.log
error.log
проверил и обнаружил это2024/10/13 19:28:23 [error] 13244#2068: *120 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /api/category HTTP/1.1", upstream: "http://127.0.0.1:5173/api/category", host: "localhost", referrer: "http://localhost:5173/"
2024/10/13 19:28:23 [warn] 13244#2068: *120 upstream server temporarily disabled while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /api/category HTTP/1.1", upstream: "http://127.0.0.1:5173/api/category", host: "localhost", referrer: "http://localhost:5173/"
ValidationError [SequelizeValidationError]: notNull Violation: street.description cannot be null
at InstanceValidator._validate (D:\programming\coursework\myguide\server\node_modules\sequelize\lib\instance-validator.js:50:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async InstanceValidator._validateAndRunHooks (D:\programming\coursework\myguide\server\node_modules\sequelize\lib\instance-validator.js:60:7)
at async InstanceValidator.validate (D:\programming\coursework\myguide\server\node_modules\sequelize\lib\instance-validator.js:54:12)
at async model.save (D:\programming\coursework\myguide\server\node_modules\sequelize\lib\model.js:2426:7)
at async street.create (D:\programming\coursework\myguide\server\node_modules\sequelize\lib\model.js:1362:12)
at async create (D:\programming\coursework\myguide\server\controllers\streetController.js:16:31) {
errors: [
ValidationErrorItem {
message: 'street.description cannot be null',
type: 'notNull Violation',
path: 'description',
value: null,
origin: 'CORE',
instance: [street],
validatorKey: 'is_null',
validatorName: null,
validatorArgs: []
}
]
}