# HTTPError: 500 Server Error: Internal Server Error for url: https://data.alpaca.markets/v1/bars/

**URL:** <https://forum.alpaca.markets/t/httperror-500-server-error-internal-server-error-for-url-https-data-alpaca-markets-v1-bars/4553>\
**Category:** Alpaca Integration Applications\
**Created:** [February 20, 2021, 6:59pm UTC](https://forum.alpaca.markets/t/httperror-500-server-error-internal-server-error-for-url-https-data-alpaca-markets-v1-bars/4553 "2021-02-20T18:59:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Johnson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/christopher_johnson/32/2152_2.png) [@Christopher\_Johnson](https://forum.alpaca.markets/u/Christopher_Johnson)\
**Post date:** [February 20, 2021, 6:59pm UTC](https://forum.alpaca.markets/t/httperror-500-server-error-internal-server-error-for-url-https-data-alpaca-markets-v1-bars/4553/1 "2021-02-20T18:59:15Z")

</div>

I know the v2 market data switch is happening, is this error perhaps related to that? I see v1 in the URL.

HTTPError: 500 Server Error: Internal Server Error for url: [[https://data.alpaca.markets/v1/bars/](https://data.alpaca.markets/v1/bars/)]([https://data.alpaca.markets/v1/bars/](https://data.alpaca.markets/v1/bars/) …

I see this with the alpaca-trade-api-0.53.0 python package

---

<div class="post-metadata">

**Author:** ![arrow107](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@arrow107](https://forum.alpaca.markets/u/arrow107)\
**Post date:** [February 20, 2021, 7:12pm UTC](https://forum.alpaca.markets/t/httperror-500-server-error-internal-server-error-for-url-https-data-alpaca-markets-v1-bars/4553/2 "2021-02-20T19:12:18Z")

</div>

Same goes on for me using v2 API since Friday 02/19 night. My code:

```
import alpaca_trade_api as tradeapi
self._api = tradeapi.REST(API_KEY, API_SECRET, APCA_API_BASE_URL, 'v2')
barset = self._api.get_barset('AAA', 'day', limit=7)

```

The command fails (exception is raised) with response ‘internal server error occurred’. If this command no longer works, what is the new command to get a barset?

---

<div class="post-metadata">

**Author:** ![Christopher\_Johnson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/christopher_johnson/32/2152_2.png) [@Christopher\_Johnson](https://forum.alpaca.markets/u/Christopher_Johnson)\
**Post date:** [February 21, 2021, 2:55am UTC](https://forum.alpaca.markets/t/httperror-500-server-error-internal-server-error-for-url-https-data-alpaca-markets-v1-bars/4553/3 "2021-02-21T02:55:07Z")

</div>

Working for me now but I am finding some symbols don’t have any data
