# Error 500 - Internal Server Error when calling getAccount() using alpaca-py

**URL:** <https://forum.alpaca.markets/t/error-500-internal-server-error-when-calling-getaccount-using-alpaca-py/10561>\
**Category:** Alpaca Integration Applications\
**Created:** [September 9, 2022, 2:31pm UTC](https://forum.alpaca.markets/t/error-500-internal-server-error-when-calling-getaccount-using-alpaca-py/10561 "2022-09-09T14:31:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![livefire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/livefire/32/4457_2.png) [@livefire](https://forum.alpaca.markets/u/livefire)\
**Post date:** [September 9, 2022, 2:31pm UTC](https://forum.alpaca.markets/t/error-500-internal-server-error-when-calling-getaccount-using-alpaca-py/10561/1 "2022-09-09T14:31:04Z")

</div>

I keep running into this issue during the open of the market several times each week. I make a call to:

```
account = trading_client.get_account()

```

Any thoughts as to why the account information cannot be retrieved? Is there a fix?

Traceback (most recent call last):  
File “/home2/.virtualenv/lib/python3.9/site-packages/alpaca/common/rest.py”, line 187, in \_one\_request  
response.raise\_for\_status()  
File “/home2/.virtualenv/lib/python3.9/site-packages/requests/models.py”, line 1021, in raise\_for\_status  
raise HTTPError(http\_error\_msg, response=self)  
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: [https://paper-api.alpaca.markets/v2/account](https://paper-api.alpaca.markets/v2/account)

Thanks,
