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 1
1
# Changelog
2
2
3
+ ## 5.0.0-rc.1
4
+
5
+ - [ node] fix: Check if buffer isReady before sending/creating Promise for request.
6
+
3
7
## 5.0.0-rc.0
4
8
5
9
- 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 {
73
73
74
74
/** JSDoc */
75
75
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
+ }
76
79
return this . _buffer . add (
77
80
new Promise < Response > ( ( resolve , reject ) => {
78
81
const req = httpModule . request ( this . _getRequestOptions ( ) , ( res : http . IncomingMessage ) => {
You can’t perform that action at this time.
0 commit comments