pyushkevich / alfabis_server

RESTful API for the ALFABIS distributed image segmentation server
6 stars 2 forks source link

Error after registered service with dss #4

Open 0x00A0 opened 1 year ago

0x00A0 commented 1 year ago

Brief description of bug

Self-Diagnosis

Environment

Steps to Reproduce the Issue

Just follow the document https://alfabis-server.readthedocs.io/en/latest/service_quick_start.html#register-your-service-with-dss

Finally, we will register our service with DSS:

itksnap-wt -dssa-providers-services-add testlab https://github.com/your_github_userid/my_little_dss_test master

It worked but then when I visited the services page http://localhost:8080/services, it showed me a "internal server error", and the console showed debug info below:

alfabis_server-app-1      | 172.19.0.1:39304 - - [09/Apr/2023 07:13:45] "HTTP/1.1 GET /api/login" - 200 OK
alfabis_server-app-1      | 172.19.0.1:39320 - - [09/Apr/2023 07:13:45] "HTTP/1.1 GET /api/services" - 200 OK
alfabis_server-app-1      | 172.19.0.1:39324 - - [09/Apr/2023 07:13:46] "HTTP/1.1 GET /api/tickets" - 200 OK
alfabis_server-app-1      | 172.19.0.1:39334 - - [09/Apr/2023 07:13:46] "HTTP/1.1 GET /api/services/f8e3982be2f29d8c02e807b8081bbb6491f6d9ab/detail" - 200 OK
alfabis_server-app-1      | Traceback (most recent call last):
alfabis_server-app-1      |   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 290, in process
alfabis_server-app-1      |     return self.handle()
alfabis_server-app-1      |   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 281, in handle
alfabis_server-app-1      |     return self._delegate(fn, self.fvars, args)
alfabis_server-app-1      |   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 531, in _delegate
alfabis_server-app-1      |     return handle_class(cls)
alfabis_server-app-1      |   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 509, in handle_class
alfabis_server-app-1      |     return tocall(*args)
alfabis_server-app-1      |   File "app.py", line 333, in GET
alfabis_server-app-1      |     s['url'] = j['url'];
alfabis_server-app-1      | KeyError: 'url'
alfabis_server-app-1      |
alfabis_server-app-1      | 172.19.0.1:39134 - - [09/Apr/2023 07:17:01] "HTTP/1.1 GET /services" - 500 Internal Server Error

My config repo is https://github.com/0x00A0/dss_service