question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Method pinList throws error after multiple sequential calls

See original GitHub issue

Hello,

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:closed
  • Created 2 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
polluterofmindscommented, May 14, 2021

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.

0reactions
SivaramPgcommented, Sep 9, 2021

Thanks for the getting back so quickly @polluterofminds . Appreciate the updated docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JS: handle multiple sequential failed async requests
I'm using promises (with await) ...
Read more >
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found