Comments (1)
Yes, I agree that the error message you are getting is not very helpful. One way to improve the user experience would be to add a custom error message that specifically mentions the pagination limit.
You can do this by catching the error that is thrown when the limit is exceeded and then throwing a new error with a more specific message. Here's an example of how you can do this in JavaScript:
try {
// make API call with pagination limit > 1000
} catch (error) {
if (error.message.includes('Pagination Error') && error.message.includes('limit')) {
throw new Error('Pagination limit exceeded. Please set limit to 1000 or less.');
} else {
// handle other errors
}
}
This code checks if the error message contains both the words "Pagination Error" and "limit". If it does, it throws a new error with a more specific message. Otherwise, it handles the error in some other way.
You can customize the error message to suit your needs.
from digital-asset-rpc-infrastructure.
Related Issues (20)
- Potential issue with redeem indexing of transactions HOT 1
- When 1.16 is out upgrade to use stack height changes from blockbuster HOT 1
- Feat: Out of order updates: if we see a missing mint, push that to be backfilled HOT 1
- All Seller Fee Basis Points Indexed as 0 HOT 1
- Outdated init.sql HOT 2
- Consider removing `name` and `symbol` from chain data and just use raw_name and raw_symbol
- Return metadata in raw format
- Question: Get owner from PDA if the owner is off-curve
- Reading from snapshot during the startup
- Decompression indexing authority HOT 1
- Validator slot falling behind when enabled `nft_ingester`. HOT 4
- [Feature] Tree Sequence Based Backfilling HOT 5
- [Bug] saving cl_audit records is not idempotent HOT 1
- Replace `cl_audits` table with `tree_transactions` HOT 2
- [Proposal] Project Structure and DAS Operations HOT 3
- Ingestion congestion from inserting backfill_items
- [Proposal] getAssetSignatures method response schema
- [RFC] Solana Transaction Structures HOT 4
- Store transaction status in plerkle serialised format
- Proposal: gRPC based indexer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from digital-asset-rpc-infrastructure.