phenopolis / phenopolis_genomics_browser

Python API and React frontend for the Phenopolis Genomics Browser
https://dev-live.phenopolis.org
MIT License
31 stars 2 forks source link

502 errors when accessing my patients #319

Closed pontikos closed 3 years ago

pontikos commented 3 years ago

image

pontikos commented 3 years ago

/api/hpo/HP:0000001 currently throwing a 502

Page doesn't load

pontikos commented 3 years ago
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/app/views/auth.py", line 41, in decorated
    return f(*args, **kwargs)
  File "/app/views/general.py", line 147, in wrapped_f
    response = f(*args, **kwargs)
  File "/app/views/hpo.py", line 49, in hpo
    cur.execute(sqlq, [hpo_id])
psycopg2.errors.SyntaxError: syntax error at or near "."
LINE 4:                 t.hpo_id,
                         ^
alanwilter commented 3 years ago

I tried https://dev-live.phenopolis.org/hpo/HP:0000001 but I didn't see any email in no-reply@phenopolis.org. On the other hand, in PatientEdit branch, after my fixes, it seems to work though I don't know what are these warnings.

Screenshot 2021-03-23 at 18 47 52
YuanTian1991 commented 3 years ago

This error is highly likely to be related to the two newly created samples:

AdminTest123 and TianTest123, I believe if we remove them, this error would be gone.

alanwilter commented 3 years ago

Fixed with #324