API 400 Question

Gevork6 years ago

Hi There,
when we are trying to make a call to api/positions with id=x we get 400 error

GET /api/positions?id=2 HTTP/1.1
Accept: application/json,application/json
Authorization: Basic TOKEN(removed for security)
User-Agent: Swagger-Codegen/1.0.0/java
Host: 116.203.219.229
Connection: keep-alive


116.203.219.229.00080-116.203.215.167.36270: HTTP/1.1 400 Bad Request
Date: Sat, 21 Sep 2019 19:04:10 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: *
Content-Length: 48
Server: Jetty(9.4.20.v20190813)

NullPointerException (PositionResource:58 < ...)
^Ctcpflow: terminating

When we removed id?x call works.. Could you explain why?