# Internal Server Error?

**URL:** <https://forum.alpaca.markets/t/internal-server-error/2184>\
**Category:** Alpaca Integration Applications\
**Created:** [July 28, 2020, 1:18pm UTC](https://forum.alpaca.markets/t/internal-server-error/2184 "2020-07-28T13:18:51Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![GreenCauliflower](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@GreenCauliflower](https://forum.alpaca.markets/u/GreenCauliflower)\
**Post date:** [July 28, 2020, 1:18pm UTC](https://forum.alpaca.markets/t/internal-server-error/2184/1 "2020-07-28T13:18:51Z")

</div>

I am having a strange problem. I haven’t changed my code, but I’m now running into the below error. I wrote Alpaca and they claim they are not having any unscheduled maintenance. They haven’t been helpful, to be honest. I would like to understand what’s going on so I can fix it, thanks for the assistance in advance. Code below:

_BACKGROUND_  
I’m using the “getbars” function, it says the error is on this line, more code available on request, thanks guys.

Traceback (most recent call last):  
File “/Users/elliot/opt/anaconda3/lib/python3.7/site-packages/alpaca\_trade\_api/rest.py”, line 136, in \_one\_request  
resp.raise\_for\_status()  
File “/Users/elliot/opt/anaconda3/lib/python3.7/site-packages/requests/models.py”, line 940, in raise\_for\_status  
raise HTTPError(http\_error\_msg, response=self)  
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: [https://data.alpaca.markets/v1/bars/minute?symbols=TSLA&limit=200](https://data.alpaca.markets/v1/bars/minute?symbols=TSLA&limit=200)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “myFile.py”, line 39, in   
tslaBars = getBars(‘TSLA’, ‘minute’)  
File “myFile.py”, line 18, in getBars  
barest = api.get\_barset(symbol, interval, limit=LOOK\_BACK\_PERIOD)  
File “/Users/elliot/opt/anaconda3/lib/python3.7/site-packages/alpaca\_trade\_api/rest.py”, line 359, in get\_barset  
resp = self.data\_get(’/bars/{}’.format(timeframe), params)  
File “/Users/elliot/opt/anaconda3/lib/python3.7/site-packages/alpaca\_trade\_api/rest.py”, line 166, in data\_get  
‘GET’, path, data, base\_url=base\_url, api\_version=‘v1’  
File “/Users/elliot/opt/anaconda3/lib/python3.7/site-packages/alpaca\_trade\_api/rest.py”, line 115, in \_request  
return self.\_one\_request(method, url, opts, retry)  
File “/Users/elliot/opt/anaconda3/lib/python3.7/site-packages/alpaca\_trade\_api/rest.py”, line 144, in \_one\_request  
raise APIError(error, http\_error)  
alpaca\_trade\_api.rest.APIError: internal server error occurred

---

<div class="post-metadata">

**Author:** ![ps-philly](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@ps-philly](https://forum.alpaca.markets/u/ps-philly)\
**Post date:** [July 28, 2020, 1:52pm UTC](https://forum.alpaca.markets/t/internal-server-error/2184/2 "2020-07-28T13:52:45Z")

</div>

Getting the same error here, when trying to request 15min bar service.  
[https://data.alpaca.markets/v1/bars/15Min?symbols=PYPL&start=2020-06-28T00:00:01-04:00&end=2020-07-28T23:59:59-04:00](https://data.alpaca.markets/v1/bars/15Min?symbols=PYPL&start=2020-06-28T00:00:01-04:00&end=2020-07-28T23:59:59-04:00)

Yesterday was working fine, today I get this error.

---

<div class="post-metadata">

**Author:** ![GreenCauliflower](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@GreenCauliflower](https://forum.alpaca.markets/u/GreenCauliflower)\
**Post date:** [July 28, 2020, 2:01pm UTC](https://forum.alpaca.markets/t/internal-server-error/2184/3 "2020-07-28T14:01:58Z")

</div>

I hope its something their end tbh, otherwise I cannot fathom how I caused this error. The support staff don’t seem fussed that they’re having an INTERNAL server error, when I raised the issue it was clear that my request wasn’t even read to the end. Do you know if there are other platforms available offering no commission Api trading?  
thanks  
e

---

<div class="post-metadata">

**Author:** ![bristow](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bristow](https://forum.alpaca.markets/u/bristow)\
**Post date:** [July 28, 2020, 2:10pm UTC](https://forum.alpaca.markets/t/internal-server-error/2184/4 "2020-07-28T14:10:03Z")

</div>

I have only just started playing with the C# API today and after the first few requests I get this exception and I am only running the example script. Glad I am not the only one seeing it!

---

<div class="post-metadata">

**Author:** ![r\_f\_2020](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/r_f_2020/32/1085_2.png) [@r\_f\_2020](https://forum.alpaca.markets/u/r_f_2020)\
**Post date:** [July 28, 2020, 2:21pm UTC](https://forum.alpaca.markets/t/internal-server-error/2184/5 "2020-07-28T14:21:43Z")

</div>

hey guys, getting the same error. Any options to work around it? Or is it purely on Alpaca’s side to deal with?

cheers

---

<div class="post-metadata">

**Author:** ![r\_f\_2020](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/r_f_2020/32/1085_2.png) [@r\_f\_2020](https://forum.alpaca.markets/u/r_f_2020)\
**Post date:** [July 28, 2020, 2:22pm UTC](https://forum.alpaca.markets/t/internal-server-error/2184/6 "2020-07-28T14:22:22Z")

</div>

also yea its been working great right up to today. zero code chgs.

---

<div class="post-metadata">

**Author:** ![GreenCauliflower](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@GreenCauliflower](https://forum.alpaca.markets/u/GreenCauliflower)\
**Post date:** [July 28, 2020, 2:27pm UTC](https://forum.alpaca.markets/t/internal-server-error/2184/7 "2020-07-28T14:27:31Z")

</div>

Yeah, I went back to a version that I KNEW worked and now it doesn’t. Hopefully someone from alpaca gives a s\*\*\* enough to resolve the issue - AND tell the community!

---

<div class="post-metadata">

**Author:** ![ps-philly](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@ps-philly](https://forum.alpaca.markets/u/ps-philly)\
**Post date:** [July 28, 2020, 2:35pm UTC](https://forum.alpaca.markets/t/internal-server-error/2184/8 "2020-07-28T14:35:45Z")

</div>

A few more people are complaining about the same issue in their Slack.

---

<div class="post-metadata">

**Author:** ![ps-philly](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@ps-philly](https://forum.alpaca.markets/u/ps-philly)\
**Post date:** [July 28, 2020, 2:44pm UTC](https://forum.alpaca.markets/t/internal-server-error/2184/9 "2020-07-28T14:44:45Z")

</div>

I heard about Ameritrade: [https://www.tdameritrade.com/api.page](https://www.tdameritrade.com/api.page)  
But have never tried it… might start trying it today…

---

<div class="post-metadata">

**Author:** ![ps-philly](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@ps-philly](https://forum.alpaca.markets/u/ps-philly)\
**Post date:** [July 28, 2020, 2:57pm UTC](https://forum.alpaca.markets/t/internal-server-error/2184/10 "2020-07-28T14:57:18Z")

</div>

The bars service is working now.

---

<div class="post-metadata">

**Author:** ![GreenCauliflower](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@GreenCauliflower](https://forum.alpaca.markets/u/GreenCauliflower)\
**Post date:** [July 28, 2020, 3:15pm UTC](https://forum.alpaca.markets/t/internal-server-error/2184/11 "2020-07-28T15:15:30Z")

</div>

yep no longer an issue. Don’t appreciate alpaca ignoring my notifying them that they have a problem, they don’t seem to take requests very seriously

---

<div class="post-metadata">

**Author:** ![thomaswadeculbertson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/thomaswadeculbertson/32/233_2.png) [@thomaswadeculbertson](https://forum.alpaca.markets/u/thomaswadeculbertson)\
**Post date:** [July 29, 2020, 1:26pm UTC](https://forum.alpaca.markets/t/internal-server-error/2184/12 "2020-07-29T13:26:20Z")

</div>

I am still not able to run anything. I have a separate post “Simplest Possible program will not run” I would appreciate any suggestions if you will take a look at it.

---

<div class="post-metadata">

**Author:** ![GreenCauliflower](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@GreenCauliflower](https://forum.alpaca.markets/u/GreenCauliflower)\
**Post date:** [July 30, 2020, 12:31am UTC](https://forum.alpaca.markets/t/internal-server-error/2184/13 "2020-07-30T00:31:54Z")

</div>

I’m not sure why this sort of thing happens, sorry mate. I commit code I KNOW works so when this sort of thing happens I can isolate the problem to alpaca’s side

---

<div class="post-metadata">

**Author:** ![GreenCauliflower](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@GreenCauliflower](https://forum.alpaca.markets/u/GreenCauliflower)\
**Post date:** [July 30, 2020, 12:32am UTC](https://forum.alpaca.markets/t/internal-server-error/2184/14 "2020-07-30T00:32:49Z")

</div>

Mine was running when you made your post to this thread though, 2:32pm UK time just after market open.

---

<div class="post-metadata">

**Author:** ![thomaswadeculbertson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/thomaswadeculbertson/32/233_2.png) [@thomaswadeculbertson](https://forum.alpaca.markets/u/thomaswadeculbertson)\
**Post date:** [July 30, 2020, 11:22am UTC](https://forum.alpaca.markets/t/internal-server-error/2184/15 "2020-07-30T11:22:39Z")

</div>

Without a doubt, the best platform out there is Meta Trader 5.  
The same platform supports various brokers.  
The downside is support for Python is limited. Their base language interface is built on C. The number of stocks and ETF’s is limited, depending on the broker you use. But if you can handle C and you can find an instrument you want to trade, it is a dream come true.

---

<div class="post-metadata">

**Author:** ![GreenCauliflower](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@GreenCauliflower](https://forum.alpaca.markets/u/GreenCauliflower)\
**Post date:** [July 30, 2020, 12:15pm UTC](https://forum.alpaca.markets/t/internal-server-error/2184/16 "2020-07-30T12:15:55Z")

</div>

Thanks for the tip! Do they offer partial shares, is it commission free?  
Thanks  
E
