api/session getting=> NullPointerException (SecurityRequestFilter:93 < ...)

Nilabh Prashara year ago

i've tried to hit api/session of traccar server with
REQUEST HEADER

POST /api/session HTTP/1.1
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Authorization: 
Connection: keep-alive
Content-Length: 29
Content-Type: application/x-www-form-urlencoded
Host: localhost:8082
Origin: http://localhost:4200
Referer: http://localhost:4200/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
sec-ch-ua: "Not?A_Brand";v="8", "Chromium";v="108", "Google Chrome";v="108"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"

payload

email=admin&password=admin

RESPONSE HEADER

HTTP/1.1 400 Bad Request
Date: Tue, 27 Dec 2022 06:47:23 GMT
Content-Type: application/json
access-control-allow-headers: origin, content-type, accept, authorization
access-control-allow-credentials: true
access-control-allow-methods: GET, POST, PUT, DELETE, OPTIONS
access-control-allow-origin: http://localhost:4200
Content-Length: 53
Server: Jetty(10.0.12)
POST /api/session HTTP/1.1
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Authorization: 
Connection: keep-alive
Content-Length: 29
Content-Type: application/x-www-form-urlencoded
Host: localhost:8082
Origin: http://localhost:4200
Referer: http://localhost:4200/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
sec-ch-ua: "Not?A_Brand";v="8", "Chromium";v="108", "Google Chrome";v="108"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"

RESPONSE

NullPointerException (SecurityRequestFilter:93 < ...)
Nilabh Prashara year ago

hitting same api from postman getting status 200 but in angular frontend getting above error, not able to figure out where m doing wrong