session POST request return NULL token

t800t8 10 years ago

I tried to create a new Session (using Traccar's API with swagger.json) but it always returns NULL as token's value even I created token using Account dialog. (I only created token, doesn't change anything else in Account dialog)

But after I changed another option in Account dialog (example: Timezone or token expiration date), the API can returns token's value.

Is it a bug of Traccar Server?

Anton Tananaev 10 years ago

If you see token in the Account dialog, you should get the same value through the API.

t800t8 10 years ago

Anton,

I tried with 2 servers and both of them have same problem. I can see token in the Account dialog but the API returns null.

To be noted that I installed a clean server then generate token only (don't change anything else in the Account dialog). But after I change other option (example: expiration date or timezone), the API now returns token's value.

Anton Tananaev 10 years ago

Please provide steps to reproduce on a clean account.

t800t8 10 years ago

Seems it happen with v3.10. Cannot reproduce after upgrading to v3.11.