Method pinList throws error after multiple sequential calls
See original GitHub issueHello,
I’m using pinata service(professional with 100GB bandwidth) as my database. I am pinning bunch of Json for each of my assets as: assetId: “t-0” , assetId: “t-1” etc. Then I’ll get their cid’s with
try {
res = await pinata.pinList({
metadata: {
keyvalues: {
assetId: {
value: `t-${asset_id}`,
op: "eq",
},
},
},
});
} catch (error) {
console.error("pinList error: ", error.toString());
throw error;
}
as specified in docs. Then I use the retrieved cid to get json content from “js-ipfs” library to avoid making extra requests to pinata gateway. However, after 6-7 consequent successful requests pinata.pinList throws me this error:
pinList error: Error: [object Object]
Error: [object Object]
at <PATH>\node_modules\@pinata\sdk\lib\pinata-sdk.js:22176:16
at processTicksAndRejections (internal/process/task_queues.js:93:5)
I believe this behavior will block me from getting in live version. Any workaround ideas will be appreciated.
Thanks in advance.
Issue Analytics
- State:
- Created 2 years ago
- Comments:18 (8 by maintainers)
Top Results From Across the Web
Sequential HTTP Calls - A better solution? : r/Angular2 - Reddit
After each call have a “filter” operator that console.logs that error and stops the propagation to the next call if an error is...
Read more >RF and MI Shared Errors Error Code Family - LabVIEW Wiki
Ensure that all instruments in the multi-instrument session are identical models. -1074099214, Specified pin list or channel list is invalid.
Read more >Relay sequence control - Raspberry Pi Forums
I am setting up a water feature which requires valves to turn on and off in a sequence. I have a bank of...
Read more >S-Series VoIP PBX - Administrator Guide - Yeastar Solutions
to the process of “forking” a single SIP call to multiple SIP endpoints. The value of Concurrent Registrations limits how many SIP endpoints...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for trying that. I have a fix for the bad error response on the SDK that I’ll be sending up soon. In the mean time, we need to figure out why you’re getting rate-limited. To help keep the github repo clean, would you be ok if we move this to email or slack?
The bug here, IMO, is the error response on the SDK. So I’ll close this issue when that’s released. But we do want to help you figure out the rate-limiting.
Thanks for the getting back so quickly @polluterofminds . Appreciate the updated docs.