# Internal server error

**URL:** <https://discuss.elastic.co/t/internal-server-error/169999>\
**Category:** APM\
**Created:** [February 26, 2019, 11:58am UTC](https://discuss.elastic.co/t/internal-server-error/169999 "2019-02-26T11:58:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![snavas](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@snavas](https://discuss.elastic.co/u/snavas)\
**Post date:** [February 26, 2019, 11:58am UTC](https://discuss.elastic.co/t/internal-server-error/169999/1 "2019-02-26T11:58:04Z")

</div>

I'm a newbie to Elastic APM and just set up the APM server/dashboards and everything. I am trying to send some data via the Elastic APM PHP Agent, but am receiving an "500 Internal Server Error". The response is as follows:

"{"ok":false,"message":"There was an internal server error."}"

I tried to manually go to the APM\_SERVERURL//transactions endpoint, and it displays the same error in the browser. Am I missing something?

---

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [February 26, 2019, 1:47pm UTC](https://discuss.elastic.co/t/internal-server-error/169999/2 "2019-02-26T13:47:41Z")

</div>

Hi,  
I am not quite sure which PHP agent you are referring to, as there is currently no official elastic agent for PHP available.

Which APM Server version are you using? It sounds like you are trying to use the v1 protocol which is supported for apm-server 6.x versions (but will be removed from 7.0 on).  
The URL for sending a `POST` request to the v1 transactions endpoint would be `SERVER_HOST:SERVER_PORT/v1/transactions`, it looks like you are missing the version in the URL above.

---

<div class="post-metadata">

**Author:** ![snavas](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@snavas](https://discuss.elastic.co/u/snavas)\
**Post date:** [February 26, 2019, 2:52pm UTC](https://discuss.elastic.co/t/internal-server-error/169999/3 "2019-02-26T14:52:39Z")

</div>

Thanks for the quick reply Silvia. I'm using this PHP Agent: [https://github.com/philkra/elastic-apm-php-agent](https://github.com/philkra/elastic-apm-php-agent). And you are right, they only support the v1 protocol currently. I'll modify the url and check again. Thanks so much.

---

<div class="post-metadata">

**Author:** ![snavas](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@snavas](https://discuss.elastic.co/u/snavas)\
**Post date:** [February 26, 2019, 2:59pm UTC](https://discuss.elastic.co/t/internal-server-error/169999/4 "2019-02-26T14:59:56Z")

</div>

That was it! Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 19, 2019, 11:03am UTC](https://discuss.elastic.co/t/internal-server-error/169999/5 "2019-03-19T11:03:46Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
