-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting 500 Internal Server Error #21
Comments
The "upload" folder is simply a reference to the directory where your osTicket is installed. For example, if your osTicket is located at http://127.0.0.1/osticket/, then the "upload" folder refers to the "osticket" directory. Another example is if your osTicket is located at http://127.0.0.1/support/, then the "upload" folder refers to the "support" directory. Also here is an example of how to query for a specific user by email using PHP:
|
Running into a similar error; attempting to send a web request through unity; i ensured that my apikey is correcly configured and the json parameters as the body but it keeps giving me internal 500 error. Here's my unity web request: string jsonData = JsonUtility.ToJson(ticketJsonData, true);
|
For some reason it fails to load the classes. This seems to be because the class includes are all lower case but its trying to find them with upper case included. e.g. DBConnection, but the class is dbconnection. Changed as below and all working now. - this isn't a fix and its not been fully tested, just got me going.
Yet, the classes are all lower case. At least in my case they are. FWI there are also a lot of depreciated warnings on PHP 8.3, so that'll need fixing at some point. |
I've put the ost_wbs folder into the "upload" folder as that appears to be where OSTicket pulls from. Because of this I have to use hosturl/ost_wbs instead of what it says in the document as hosturl/upload gives me a 404.
That being said, it seems to work... kind of. If I don't have an API key in the header it tells me it's an "Incorrect API Format", but when I have the API key and try to run it it gives me the 500 server error and the body is blank, nothing returned at all.
I am attempting to get a specific user using POSTMAN. I copied the code from the documentation site into the Body tab, using "raw" and "json"
{
"query":"user",
"condition":"specific",
"sort":"email",
"parameters":{
"email":"[email protected]"
}
}
and in the headers tab I put "apikey" with a value of the API key generated with my computer's IP address.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: