Giter Club home page Giter Club logo

Comments (12)

tiago-sanches-bairesdev avatar tiago-sanches-bairesdev commented on August 16, 2024 2

@cgfarmer4 case ID #521412, Shawn gave an example of the piece of code we still using in the webhook endpoint setup, lemme know if you need something else.

from plaid-node.

tiago-sanches-bairesdev avatar tiago-sanches-bairesdev commented on August 16, 2024 2

for anyone struggling on that, i searched some stuffs about using nextjs API as a webhook, and I fixed it by adding the micro an using its function buffer, like the code below

  const rawBody = await buffer(req)
  const body = JSON.parse(rawBody.toString())

and this at the end of the code, outside the API function

export const config = {
  api: {
    bodyParser: false,
  },
}

from plaid-node.

phoenixy1 avatar phoenixy1 commented on August 16, 2024

@shawnlknight webhooks don't integrate with the client libraries at all so this seems like it is probably not related to the client library upgrade (especially as downgrading didn't fix the problem). Can you file a support ticket including the relevant identifiers (such as item_id) so that the support team can look at the specific webhooks and investigate what's happening?

from plaid-node.

shawnlknight avatar shawnlknight commented on August 16, 2024

Thanks for the quick reply @phoenixy1 . I just filed a support ticket through the Plaid dashboard for this issue.

The reason I filed the issue here initially is because we started getting errors about the empty request body the same day we updated our version of plaid-node. Seemed like it could be correlated but obviously does not mean causation.

Thank you.

from plaid-node.

cgfarmer4 avatar cgfarmer4 commented on August 16, 2024

@shawnlknight did this get resolved?

from plaid-node.

shawnlknight avatar shawnlknight commented on August 16, 2024

@shawnlknight did this get resolved?

@cgfarmer4 I filed a support ticket through their dashboard and they were very responsive but we were not able to resolve the issue.

from plaid-node.

cgfarmer4 avatar cgfarmer4 commented on August 16, 2024

I see, so you're still receiving the webhooks but the request body is an empty blob? can you forward me the support ticket please?

from plaid-node.

tiago-sanches-bairesdev avatar tiago-sanches-bairesdev commented on August 16, 2024

@cgfarmer4 The case ID of the support ticket helps?

from plaid-node.

cgfarmer4 avatar cgfarmer4 commented on August 16, 2024

yea thats fine!

from plaid-node.

cgfarmer4 avatar cgfarmer4 commented on August 16, 2024

What version of Next are you all on? Want to try to reproduce on my end.

from plaid-node.

tiago-sanches-bairesdev avatar tiago-sanches-bairesdev commented on August 16, 2024

@cgfarmer4 We are using Next v13.2.2

from plaid-node.

cgfarmer4 avatar cgfarmer4 commented on August 16, 2024

Thank you @tiago-sanches-bairesdev for the tip! Ill add this to our ReadMe

from plaid-node.

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.