You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "Marcus Christie (Jira)" <ji...@apache.org> on 2021/09/15 19:26:00 UTC

[jira] [Created] (AIRAVATA-3510) Django REST API: return a 404 when unable to load application interface because it doesn't exist

Marcus Christie created AIRAVATA-3510:
-----------------------------------------

             Summary: Django REST API: return a 404 when unable to load application interface because it doesn't exist
                 Key: AIRAVATA-3510
                 URL: https://issues.apache.org/jira/browse/AIRAVATA-3510
             Project: Airavata
          Issue Type: Bug
          Components: Django Portal
            Reporter: Marcus Christie
            Assignee: Marcus Christie


We get several spurious error emails relating to failure to load an application interface. This sort of error email message is typical:

```
AiravataSystemException
AiravataSystemException(airavataErrorType=2, message='Error while retrieving application interface. More info : getApplicationInterface failed: unknown result')
Django Version:	2.2.23
Exception Type:	AiravataSystemException
Exception Value:	
AiravataSystemException(airavataErrorType=2, message='Error while retrieving application interface. More info : getApplicationInterface failed: unknown result')
Exception Location:	/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/airavata/api/Airavata.py in recv_getApplicationInterface, line 7247
Python Executable:	/var/www/portals/django-seagrid/venv/bin/python
Python Version:	3.6.8
Python Path:	
['/usr/lib64/python36.zip',
 '/usr/lib64/python3.6',
 '/usr/lib64/python3.6/lib-dynload',
 '/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages',
 '/var/www/portals/django-seagrid/airavata-django-portal',
 '/var/www/portals/django-seagrid/venv/lib/python3.6/site-packages',
 '/var/www/portals/django-seagrid/venv/lib64/python3.6/site-packages/IPython/extensions']
Server time:	Tue, 14 Sep 2021 13:34:38 +0000

```

This is because the application no longer exists but an experiment still references it. The REST API and error messaging could be cleaned up by first checking if the interface exists and then returning a proper 404 when an interface no longer exists.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)