Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(network): the process exiting without exit code #7

Merged
merged 1 commit into from
Apr 2, 2022

Conversation

H4ad
Copy link
Owner

@H4ad H4ad commented Apr 2, 2022

When I integrate with NestJS, I could create GET requests but POST requests returned null in
response because the NodeJS exits when it could not wait an promise. This bug was caused by
request.ts when I override the internal variable of stream _readableState, with this, the NestJS
could not process the request and the process exits after some seconds without exit code.

Refs:

Description of change

I just remove the overrides in internal state of the stream.

Pull-Request Checklist

  • Code is up-to-date with the main branch
  • npm run lint passes with this change
  • npm run test passes with this change
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions outlined in the conventional commit spec

…exiting in deadlock

When I integrate with NestJS, I could create GET requests but POST requests returned null in
response because the NodeJS exits when it could not wait an promise. This bug was caused by
request.ts when I override the internal variable of stream _readableState, with this, the NestJS
could not process the request and the process exits after some seconds without exit code.
@H4ad H4ad added the bug Something isn't working label Apr 2, 2022
@H4ad H4ad added this to the MVP milestone Apr 2, 2022
@H4ad H4ad self-assigned this Apr 2, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #7 (e3c46bc) into main (8bf07eb) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main        #7   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           30        30           
  Lines          710       709    -1     
  Branches       171       171           
=========================================
- Hits           710       709    -1     
Impacted Files Coverage Δ
src/network/request.ts 100.00% <ø> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@H4ad H4ad merged commit 6e95fb3 into main Apr 2, 2022
@H4ad H4ad deleted the fix/request-with-body-exits-in-deadlock branch April 2, 2022 16:03
@github-actions
Copy link

github-actions bot commented Apr 2, 2022

🎉 This PR is included in version 2.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants