okuna-api icon indicating copy to clipboard operation
okuna-api copied to clipboard

"Invalid model - model not available" on /api/notifications/

Open frankvolkel opened this issue 5 years ago • 1 comments

I'm running okuna-api 0.0.67 and okuna-app 0.0.66.

Calls to /api/notifications with certain types results in a ["Invalid model - model not available."] response:

okuna-api    | 2020-05-18 11:08:29,587 django.request WARNING  Bad Request: /api/notifications/
okuna-api    | 2020-05-18 11:08:29,588 django.server WARNING  "GET /api/notifications/?types=PR,PCRA,PC,PCR,PUM,PCUM,CC,F,CNP,UNP& HTTP/1.1" 400 40

Calls with less types return fine:

okuna-api    | 2020-05-18 10:53:13,301 django.server INFO     "GET /api/notifications/?types=CR,CI& HTTP/1.1" 200 2

frankvolkel avatar May 18 '20 09:05 frankvolkel

Hi Frank, have you ran the newer migrations?

python manage.py migrate

lifenautjoe avatar May 20 '20 13:05 lifenautjoe