[#519] getUserToken returns error

Migrated from Redmine #519 | Author: Halldor Gislason
Status: New | Priority: High, I’m very impatient | Created: 2020-04-21


Raw request:

POST /login HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: user-api.simplybook.me
Connection: close
User-Agent: Paw/3.1.10 (Macintosh; OS X/10.15.4) GCDHTTPRequest
Content-Length: 109

{“jsonrpc”:“2.0”,“id”:111,“method”:“getUserToken”,“params”:{“1”:“myCompany”,“2”:“loginuser”,“3”:“userPass”}}

always returns -32000 Unexpected Errors

whereas getToken works flawlessly?

Halldor Gislason wrote:

Same result with this:

POST /login HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: user-api.simplybook.me
Connection: close
User-Agent: Paw/3.1.10 (Macintosh; OS X/10.15.4) GCDHTTPRequest
Content-Length: 109

{“jsonrpc”:“2.0”,“method”:“getUserToken”,“params”:[“myCompany”,“loginuser”,“userPass”],“id”:1}

Halldor Gislason wrote:

SOLVED

the companyLogin was not in the right case - funny thing though that it was accepted so that if I sent a wrong companylogin I got an error but wrong case was not returned as a not found…

Halldor