Does nock support node lts/hydrogen version? #2442
Unanswered
vijay-pawar-aptos-com
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
we are trying to upgrade node version to lts/hydrogen from lts/gallium in our application. We could see the existing test case is not working after upgrade. The test case uses nock to mock rest api call, seems its not working after node upgrade. Does nock support node lts/hydrogen version?
nock("https://api.dev.xxxx-xxx.io").post("/v3/logs").twice().reply(200, "Ok");
Error received:
Post to Logging Service https://api.dev.xxxx-xxx.io/logs/v3/logs failed due to TypeError: fetch failed
Note: here we use fetch to call rest api
Note: "nock" is upgraded from 13.2.9 to 13.3.0
Beta Was this translation helpful? Give feedback.
All reactions