Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move timeout handling into handlers. #786

Merged
merged 17 commits into from
Nov 22, 2021
16 changes: 10 additions & 6 deletions api/error_messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,22 @@ const (
errUnableToParseNext = "unable to parse next token"
errUnableToDecodeTransaction = "unable to decode transaction bytes"
errFailedSearchingAccount = "failed while searching for account"
errFailedSearchingAsset = "failed while searching for asset"
errFailedSearchingAssetBalances = "failed while searching for asset balances"
errFailedSearchingApplication = "failed while searching for application"
errFailedLookingUpHealth = "failed while getting indexer health"
errNoApplicationsFound = "no application found for application-id"
errNoAccountsFound = "no accounts found for address"
errNoAssetsFound = "no assets found for asset-id"
errNoTransactionFound = "no transaction found for transaction id"
errMultipleTransactions = "multiple transactions found for this txid, please contact us this shouldn't happen"
errMultipleAccounts = "multiple accounts found for this address, please contact us this shouldn't happen"
errMultipleAssets = "multiple assets found for this id, please contact us this shouldn't happen"
errMultipleTransactions = "multiple transactions found for this txid, please contact us, this shouldn't happen"
errMultipleAccounts = "multiple accounts found for this address, please contact us, this shouldn't happen"
errMultipleAssets = "multiple assets found for this id, please contact us, this shouldn't happen"
errMultipleApplications = "multiple applications found for this id, please contact us, this shouldn't happen"
errMultiAcctRewind = "multiple accounts rewind is not supported by this server"
errRewindingAccount = "error while rewinding account"
errLookingUpBlock = "error while looking up block for round"
errLookingUpBlockForRound = "error while looking up block for round"
errTransactionSearch = "error while searching for transaction"
errSpecialAccounts = "indexer doesn't support fee sink and rewards pool accounts, please refer to algod for relevant information"
errFailedLoadSpecialAccounts = "failed to retrieve special accounts"
errZeroAddressCloseRemainderToRole = "searching transactions by zero address with close address role is not supported"
errZeroAddressAssetSenderRole = "searching transactions by zero address with asset sender role is not supported"
errZeroAddressAssetCloseToRole = "searching transactions by zero address with asset close address role is not supported"
Expand Down
Loading