rollbar / rollbar.js

Error tracking and logging from Javascript to Rollbar
https://docs.rollbar.com/docs/javascript
MIT License
566 stars 212 forks source link

Does rollbar.js support Deno? #1104

Closed tian-sheng-low closed 1 year ago

tian-sheng-low commented 1 year ago

Deno is a new JavaScript V8 runtime other than NodeJS and it is compatible with most of the npm packages. My team is trying to use rollbar.js with Deno, but rollbar.js seems to be failing silently without creating and sending the item to Rollbar.

import Rollbar from 'rollbar'

const rb = new Rollbar(...)
rb.error("test error")

We have even tried to use the rollbar API to create the item (https://docs.rollbar.com/reference/create-item) and it worked. So, we are guessing maybe there is something between the compatibility of rollbar.js with Deno.

Any helps will be highly appreciated.

waltjones commented 1 year ago

I'll take a look at this and update here with what I find.

tian-sheng-low commented 1 year ago

@waltjones Hi, thanks for your response. I have done some debugging and found that the issue only occurs for Deno v1.33.4 and later. Seems to me like a http protocol issue.

I leave a comment there with some insight. https://github.com/denoland/deno/issues/16923#issuecomment-1564190596

tian-sheng-low commented 1 year ago

@waltjones With the recent release of Deno v1.34.1, the issue has since been fixed. You may kindly close this issue now. Thanks for your support.

ghost commented 1 year ago

I'm glad your issue got fixed by now. Thanks, @tian-sheng-low for the confirmation.