When running get_transaction_data for certain date ranges, receiving 500 Server Error: Internal Server Error.
import mintapi
mint = mintapi.Mint(...)
df = mint.get_transaction_data(date_filter='CUSTOM', start_date='2017-01-01',
end_date='2017-12-31', remove_pending=True, include_investment=True, limit=10000)
----> [82](file:///home/user/github/mint_api/dave_mint.py?line=81) df = mint.get_transaction_data(date_filter='CUSTOM', start_date='2017-01-01',
[83](file:///home/user/github/mint_api/dave_mint.py?line=82) end_date='2017-12-31', remove_pending=True, include_investment=True, limit=10000)
File [~/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py:611](https://file+.vscode-resource.vscode-cdn.net/home/user/github/mint_api/~/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py:611), in MintEndpoints.get_transaction_data(self, date_filter, start_date, end_date, category_ids, tag_ids, descriptions, account_ids, match_all_filters, include_investment, remove_pending, limit, offset, **kwargs)
[594](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=593) search_filter = SearchFilterBuilder.search_builder(
[595](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=594) match_all_filters=match_all_filters,
[596](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=595) category_ids=category_ids,
(...)
[599](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=598) account_ids=account_ids,
[600](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=599) )
[602](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=601) payload = TransactionRequest(
[603](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=602) date_filter=DateFilter(
[604](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=603) date_filter=date_filter, start_date=start_date, end_date=end_date
(...)
[608](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=607) offset=offset,
[609](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=608) )
--> [611](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=610) data = self._get_transaction_data(json=payload.to_dict(), **kwargs)
[613](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=612) if remove_pending:
[614](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=613) filtered = filter(
[615](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=614) lambda transaction: transaction["isPending"] is False,
[616](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=615) data,
[617](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=616) )
File [~/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py:299](https://file+.vscode-resource.vscode-cdn.net/home/user/github/mint_api/~/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py:299), in MintEndpoints._get_transaction_data(self, **kwargs)
[296](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=295) metadata_key = "metaData"
[297](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=296) data_key = "Transaction"
--> [299](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=298) return self.post(
[300](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=299) api_url=api_url,
[301](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=300) api_section=api_section,
[302](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=301) uri_path=uri_path,
[303](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=302) data_key=data_key,
[304](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=303) metadata_key=metadata_key,
[305](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=304) **kwargs,
[306](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=305) )
File [~/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py:37](https://file+.vscode-resource.vscode-cdn.net/home/user/github/mint_api/~/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py:37), in MintEndpoints.post(self, **kwargs)
[36](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=35) def post(self, **kwargs):
---> [37](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/endpoints.py?line=36) return self.request(method="POST", **kwargs)
File [~/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/browser.py:189](https://file+.vscode-resource.vscode-cdn.net/home/user/github/mint_api/~/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/browser.py:189), in SeleniumBrowser.request(self, method, api_url, api_section, uri_path, data_key, metadata_key, paginate, headers, **kwargs)
[184](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/browser.py?line=183) auth_headers.update(headers)
[186](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/browser.py?line=185) response = self.driver.request(
[187](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/browser.py?line=186) method=method, url=url, headers=auth_headers, **kwargs
[188](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/browser.py?line=187) )
--> [189](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/browser.py?line=188) response.raise_for_status()
[191](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/browser.py?line=190) if paginate:
[192](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/browser.py?line=191) return self._paginate(
[193](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/browser.py?line=192) api_url=api_url,
[194](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/browser.py?line=193) api_section=api_section,
(...)
[200](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/browser.py?line=199) **kwargs,
[201](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/mintapi/browser.py?line=200) )
File [~/github/mint_api/mint_venv/lib/python3.9/site-packages/requests/models.py:1021](https://file+.vscode-resource.vscode-cdn.net/home/user/github/mint_api/~/github/mint_api/mint_venv/lib/python3.9/site-packages/requests/models.py:1021), in Response.raise_for_status(self)
[1016](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/requests/models.py?line=1015) http_error_msg = (
[1017](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/requests/models.py?line=1016) f"{self.status_code} Server Error: {reason} for url: {self.url}"
[1018](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/requests/models.py?line=1017) )
[1020](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/requests/models.py?line=1019) if http_error_msg:
-> [1021](file:///home/user/github/mint_api/mint_venv/lib/python3.9/site-packages/requests/models.py?line=1020) raise HTTPError(http_error_msg, response=self)
HTTPError: 500 Server Error: Internal Server Error for url: https://mint.intuit.com/pfm/v1/transactions/search
Describe the bug
A clear and concise description of what the bug is.
When running get_transaction_data for certain date ranges, receiving 500 Server Error: Internal Server Error.
What version of MintAPI are you using? mintapi==2.14
What command[s] did you run / steps to reproduce?
Stacktrace/error received:
What did you expect to happen?
return data
What actually happened?
error
Additional context
I realize I'm trying to pull old data, but I've been able to do the same for older years, starting in 2009. Just trying to get a historical dump. When I filter transactions on mint.com for this date range, there are 1848 transactions.