studoverse/campus-qr

listActiveCheckIns request doesn't seem to work

Closed this issue · 2 comments

pbek commented

To get the list of active checkins I tried (by reverse engineering):

curl -X POST 'https://campusqr-dev.tugraz.at/report/listActiveCheckIns?emailAddress=my.email%40domain.at' -H 'X-Authorization: our-long-token' -s -o /dev/null -w "status: %{http_code}"

...and got back an error 500.

The log says:

com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.util.LinkedHashMap<java.lang.Object,java.lang.Object>` out of NOT_AVAILABLE token
 at [Source: UNKNOWN; line: -1, column: -1]
14:49:47.005 [nioEventLoopGroup-4-2] INFO ktor.application - Unhandled: POST - /report/listActiveCheckIns, io failed

How can I use the listActiveCheckIns?

I think the problem is that listActiveCheckIns needs the emailAddress in the request body (JSON format) and not as a query parameter.

pbek commented

That did work. Thank you very much... Still leaves the question why the request needs to be a POST. 😉