Plaid Package Issue


I am trying to create a Worker that uses the Plaid npm package to perform certain server-side calls. The first step is, the client makes a fetch call to the worker, to call a function ‘linkTokenCreate’ on the plaid object which returns a token that is sent to the client. However, the following error is received when attempting to call that function:

A promise rejection was handled asynchronously. This warning occurs when attaching a catch handler to a promise after it rejected. (rejection #1)
✘ [ERROR] Uncaught (in response) TypeError: adapter is not a function
✘ [ERROR] Uncaught (in promise) TypeError: adapter is not a function

I have tested, successfully, being able to return data in a response object when that function is not called. I am not exactly sure where to go from here, any help would be greatly appreciated. Thank you!

How are you making the calls? If you are trying to use anything but the build in fetch API, then it will fail.

Also, I would recommend that you check out the Developers Discord it is more focused towards workers than the community.