Common errors

  • Authorization error
                                        
                                            {
                                                "token": "eyJhbGciOiJI...",
                                                "authorized": false,
                                                "authorizationMessage": "DNERR_06003: Cannot read the token's email property. Please verify!",
                                                "responseCode": "511",
                                                "responseMessage": "Network Authentication Required",
                                                "errorsFound": [
                                                    {
                                                        "errorCode": "401",
                                                        "errorStatus": "UNAUTHORIZED",
                                                        "message": "The access token credential are missing or invalid for the given request. Wrong token.",
                                                        "parameter": {
                                                            "name": "token",
                                                            "required": true,
                                                            "defaultValue": false,
                                                            "value": "",
                                                            "message": ""
                                                        }
                                                    }
                                                ]
                                            }
                                        
                                    
  • Source error
                                        
                                            {
                                                "token": "eyJhbGciOiJI...",
                                                "authorized": true,
                                                "authorizationMessage": "Authorized!",
                                                "responseCode": "200",
                                                "responseMessage": "OK",
                                                "errorsFound": [
                                                    {
                                                        "errorCode": "404",
                                                        "errorStatus": "RESOURCES_NOT_FOUND",
                                                        "message": "Could not find resources. No versions were found for the source. Verify the DISNET source list.",
                                                        "parameter": {
                                                            "name": "source",
                                                            "required": true,
                                                            "defaultValue": false,
                                                            "value": "wikiedia",
                                                            "message": ""
                                                        }
                                                    }
                                                ]
                                            }
                                        
                                    
  • Version error
                                        
                                            {
                                                "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJncmFyZG9sYWdhckBob3RtYWlsLmNvbSIsImF1ZCI6IndlYiIsIm5hbWUiOiJHZXJhcmRvIExhZ3VuZXMiLCJ1c2VyIjp0cnVlLCJpYXQiOjE1MDk2MTQyNjh9.uVhDgfLrAgdnj02Hsbgfj9tkVlfni89i0hKVYW31eHApCHpheikK9ae1MhbzRhiyUcFGMKwtiyVgff5NCMY3PA",
                                                "authorized": true,
                                                "authorizationMessage": "Authorized!",
                                                "responseCode": "400",
                                                "responseMessage": "A required parameter for this API operation is invalid or has not been provided",
                                                "errorsFound": [
                                                    {
                                                        "errorCode": "404",
                                                        "errorStatus": "RESOURCE_NOT_FOUND",
                                                        "message": "Could not find resource. The version was not found. Check the DISNET version list by source.",
                                                        "parameter": {
                                                            "name": "version",
                                                            "required": true,
                                                            "defaultValue": false,
                                                            "value": "2018-10-15"
                                                        }
                                                    }
                                                ],
                                                "diseaseCount": 0,
                                                "diseaseList": []
                                            }
                                        
                                    
  • Disease name error
                                        
                                            {
                                                "token": "eyJhbGciOiJI...",
                                                "authorized": true,
                                                "authorizationMessage": "Authorized!",
                                                "responseCode": "400",
                                                "responseMessage": "A required parameter for this API operation is invalid or has not been provided",
                                                "errorsFound": [
                                                    {
                                                        "errorCode": "404",
                                                        "errorStatus": "RESOURCE_NOT_FOUND",
                                                        "message": "Could not find resource. No disease with that exact name was found. Verify the exact disease name in the DISNET disease list.",
                                                        "parameter": {
                                                            "name": "diseaseName",
                                                            "required": true,
                                                            "defaultValue": false,
                                                            "value": "InvalidName"
                                                        }
                                                    }
                                                ]
                                            }
                                        
                                    
  • Semantic types definition error
                                        
                                            {
                                                    "token": "eyJhbGciOiJI...",
                                                    "authorized": true,
                                                    "authorizationMessage": "Authorized!",
                                                    "responseCode": "200",
                                                    "responseMessage": "OK",
                                                    "errorsFound": [
                                                        {
                                                            "errorCode": "404",
                                                            "errorStatus": "RESOURCE_NOT_FOUND",
                                                            "message": "Could not find resource. Semantic type not found.",
                                                            "parameter": {
                                                                "name": "forceSemanticTypes",
                                                                "required": false,
                                                                "defaultValue": false,
                                                                "value": "InvalidValue"
                                                            }
                                                        }
                                                    ]
                                                }