File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
packages/node/src/transports Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 5.0.0-rc.1
4+
5+ - [ node] fix: Check if buffer isReady before sending/creating Promise for request.
6+
37## 5.0.0-rc.0
48
59- Fix: Tag npm release with ` next ` to not make it latest
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ export abstract class BaseTransport implements Transport {
7373
7474 /** JSDoc */
7575 protected async _sendWithModule ( httpModule : HTTPRequest , event : Event ) : Promise < Response > {
76+ if ( ! this . _buffer . isReady ( ) ) {
77+ return Promise . reject ( new SentryError ( 'Not adding Promise due to buffer limit reached.' ) ) ;
78+ }
7679 return this . _buffer . add (
7780 new Promise < Response > ( ( resolve , reject ) => {
7881 const req = httpModule . request ( this . _getRequestOptions ( ) , ( res : http . IncomingMessage ) => {
You can’t perform that action at this time.
0 commit comments