View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0030200 | mantisbt | api rest | public | 2022-05-12 06:49 | 2022-06-12 09:10 |
Reporter | ciaras.wyatt | Assigned To | dregad | ||
Priority | normal | Severity | block | Reproducibility | N/A |
Status | closed | Resolution | no change required | ||
Product Version | 2.25.2 | ||||
Summary | 0030200: REST API - Internal Server Error | ||||
Description | I am trying to request data from the REST API using the Python Requests module. I have an API token in place that I generated from Mantis. Every time I try and get data from the API I get this response. 500 - Internal server error. | ||||
Additional Information | The code I am running is below: import requests url_get = url_root + url_ext_api r = requests.get(url_get, headers={'Authorization' : api_token}) | ||||
Tags | No tags attached. | ||||
Your code should be fine (assuming HTTP 500 error denotes a problem with your MantisBT server, which can't be diagnosed with the given information. Check the PHP error log on your server to find out what is wrong. |
|
ciaras.wyatt, You did not provide any feedback; I am therefore resolving this issue as "no change required". Feel free to reopen the issue at a later time and provide the requested information. |
|