Giter VIP home page Giter VIP logo

Comments (10)

tot-ra avatar tot-ra commented on August 16, 2024 1

Best one is support chat in the app
https://support.pipedrive.com/hc/en-us/articles/115005875565

Optionally, there is also community forum that can also answer questions on API
https://devcommunity.pipedrive.com/

from client-nodejs.

tot-ra avatar tot-ra commented on August 16, 2024

Did you try making API request from postman or other method, does it hang too?

from client-nodejs.

petedejoy avatar petedejoy commented on August 16, 2024

Yes, I tried making the request to my API endpoint (which calls all of those functions sequentially) from both my website test environment and Postman.

from client-nodejs.

tot-ra avatar tot-ra commented on August 16, 2024

If API hangs in postman too, then better to report it to support engineers, then we can trace / check logs of your company

from client-nodejs.

petedejoy avatar petedejoy commented on August 16, 2024

@tot-ra what is the best channel to do that through?

from client-nodejs.

petedejoy avatar petedejoy commented on August 16, 2024

It seems that the API endpoint is healthy. Commenting out the code that uses this library and using axios to post the /deals endpoint directly instead returns a successful and expected response:

function createDeal(title) {
  axios.post('https://<my-pipedrive-domain>.pipedrive.com/v1/deals?api_token=<my-api-token>', {
    title,
  }).then((res) => {
    console.log(`statusCode: ${res.statusCode}`)
    console.log(res)
  })
  .catch((error) => {
    console.error(error)
  })
  // return new Promise(resolve => pipedrive.Deals.add({ title }), (err, decoded) => {
  //   if (err) {
  //     Sentry.captureException(new Error(err));
  //     return resolve({});
  //   }
  //   return resolve(decoded)});
}

Note that all of the other functions I'm using from this package resolve as expected (pipedrive.Organizations.add, pipedrive.Persons.add).

from client-nodejs.

eerootsus avatar eerootsus commented on August 16, 2024

@petedejoy
Could it be you are making a lot of requests? There is some rudimentary rate limiting which tries to debounce the requests. I guess there might be a condition where requests pile up and will maybe be made far in the future.

Could you possibly monitor the x-ratelimit-* headers from the API responses and see what they look like just before you are seeing timeouts?

from client-nodejs.

petedejoy avatar petedejoy commented on August 16, 2024

I really don't think I'm hitting a rate limit- I make like 3 requests a day. Another interesting thing is that, while changing the one deals function to use Axios instead of this library caused everything to run as expected, changing everything to Axios calls produces the same result as described here- the first two calls pass and the third gets hung up.

from client-nodejs.

eerootsus avatar eerootsus commented on August 16, 2024

@petedejoy
🧐

Can you maybe try to turn on logging by setting PIPEDRIVE_DEBUG=true in your environment? And see what the output says?
Also, as @tot-ra suggested, it might make sense to open a support ticket via support chat - we might have to track this issue on our server side and check the logs, but for that we need company account information, which should never be shared here.

from client-nodejs.

RuTsEST avatar RuTsEST commented on August 16, 2024

Closing this due to inactivity and the release of the new version of the client.

from client-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.