# Api calls return error 500

**URL:** https://community.xibo.org.uk/t/api-calls-return-error-500/15337
**Category:** Get Help
**Created:** [August 7, 2018, 1:56pm UTC](https://community.xibo.org.uk/t/api-calls-return-error-500/15337 "2018-08-07T13:56:07Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Indef](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/i/e68b1a/32.png) [@Indef](https://community.xibo.org.uk/u/Indef)
#### Post date: [August 7, 2018, 1:56pm UTC](https://community.xibo.org.uk/t/api-calls-return-error-500/15337/1 "2018-08-07T13:56:08Z")

</div>

Hello,

We have a working CMS (v1.8.1) installed since a few months and we want to use the API now.

I have followed the [introduction](https://community.xibo.org.uk/t/1-8-api-introduction/7702), but when I want to get the access\_token, the result is an error 500 :

 ![error500](https://community.xibo.org.uk/uploads/default/original/2X/e/ebb768b8c1858d7bf74ab242265e0e943581c6ab.png)

After tests, I notice that every call to our api (like a get request to /api/clock/ via a browser) return also an error 500.

This seems to be linked to a configuration problem. Do you know where it could come from ?

Thanks

---

<div class="post-metadata">

### Author: ![Peter](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/peter/32/8154_2.png) [@Peter](https://community.xibo.org.uk/u/Peter)
#### Post date: [August 7, 2018, 2:11pm UTC](https://community.xibo.org.uk/t/api-calls-return-error-500/15337/2 "2018-08-07T14:11:31Z")

</div>

Could you tell me if it’s docker or manual installation please?

If it’s manual installation, do you have `/web` in CMS address?

I’d certainly also recommend upgrade to 1.8.10, 1.8.1 is not quite old, although I don’t necessarily think that the CMS version is the problem here.

the `{CMSURL}/about` and `{CMSURL}/clock` CMS pages can be accessed normally in browser, with /api ie  
`{CMSURL}/api/clock` they do require `access_token` in Authorization header.

I assume the application was created as per my introduction guide ie with client credentials and all access checkboxes enabled and that clientId and clientSecret was copied from that application to Postman environment?

---

<div class="post-metadata">

### Author: ![Indef](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/i/e68b1a/32.png) [@Indef](https://community.xibo.org.uk/u/Indef)
#### Post date: [August 7, 2018, 2:41pm UTC](https://community.xibo.org.uk/t/api-calls-return-error-500/15337/3 "2018-08-07T14:41:10Z")

</div>

The installation has been done and is still managed by an external company, so I don’t know if it’s a docker or a manual installation. I will ask and tell you as soon as possible.

I don’t have `/web` in my CMS address.

`{CMSURL}/about` works as expected but `{CMSURL}/clock` result to an “Unexpected Error, please contact support.” error.

I confirm that the application was created as in your introduction guide ie with client credentials and all access checkboxes enabled and that clientId and clientSecret was copied from that application to Postman environment.

---

<div class="post-metadata">

### Author: ![Indef](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/i/e68b1a/32.png) [@Indef](https://community.xibo.org.uk/u/Indef)
#### Post date: [August 7, 2018, 3:30pm UTC](https://community.xibo.org.uk/t/api-calls-return-error-500/15337/4 "2018-08-07T15:30:12Z")

</div>

I have the confirmation that the installation has been done manually.

---

<div class="post-metadata">

### Author: ![Indef](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/i/e68b1a/32.png) [@Indef](https://community.xibo.org.uk/u/Indef)
#### Post date: [August 9, 2018, 8:49am UTC](https://community.xibo.org.uk/t/api-calls-return-error-500/15337/5 "2018-08-09T08:49:25Z")

</div>

Hello,

Given the previous informations, do you think of a solution to my problem ?

---

<div class="post-metadata">

### Author: ![Peter](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/peter/32/8154_2.png) [@Peter](https://community.xibo.org.uk/u/Peter)
#### Post date: [August 9, 2018, 8:55am UTC](https://community.xibo.org.uk/t/api-calls-return-error-500/15337/6 "2018-08-09T08:55:31Z")

</div>

CMS Upgrade to 1.8.10 would be my first suggestion.

If your CMS is available over the internet, then I can have a quick look at the application and try to make some calls to it as well (if it is the case, please send me temporary login credentials via private message).

---

<div class="post-metadata">

### Author: ![system](https://community.xibo.org.uk/uploads/default/original/2X/a/a8759c2d8cc561474733895ac75beeb830f5d8ca.png) [@system](https://community.xibo.org.uk/u/system)
#### Post date: [March 4, 2020, 5:11pm UTC](https://community.xibo.org.uk/t/api-calls-return-error-500/15337/7 "2020-03-04T17:11:51Z")

</div>


