deepgram-devs / deepgram-node-proxy

MIT License
2 stars 4 forks source link

Error handler syntax/signature error #3

Open myselfhimself opened 8 months ago

myselfhimself commented 8 months ago

Hello,

this line raises errors when raised because response methods cannot be chained this way: https://github.com/deepgram-devs/deepgram-node-proxy/blob/main/index.js#L34

It seems that error handler relies on different types of objects / APIs.

I will contribute a working one.

myselfhimself commented 8 months ago

Here is a related PR https://github.com/deepgram-devs/deepgram-node-proxy/pull/4