# Error: Cannot find module 'request@2.56.0' Require stack: - /data/io/node18/\*\*\*\*\*\*/webtask.js

**URL:** <https://community.auth0.com/t/error-cannot-find-module-request-2-56-0-require-stack-data-io-node18-webtask-js/120983>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [November 15, 2023, 8:56pm UTC](https://community.auth0.com/t/error-cannot-find-module-request-2-56-0-require-stack-data-io-node18-webtask-js/120983 "2023-11-15T20:56:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![saker132](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saker132/32/52470_2.png) [@saker132](https://community.auth0.com/u/saker132)\
**Post date:** [November 15, 2023, 8:56pm UTC](https://community.auth0.com/t/error-cannot-find-module-request-2-56-0-require-stack-data-io-node18-webtask-js/120983/1 "2023-11-15T20:56:12Z")

</div>

Hello.  
I am new to Auth0 and am experimenting for a future SPA application I want to build. I don’t know why I am receiving the above error after I have logged in. I have been following the quickstart guides to the letter yet I get this error and in the debug menu I can see that the auth0.user object is undefined. I have tried following the quickstart guides for both Vue.js and React and get the same error for both applications. I also downloaded and tried the sample projects from github and got the same error. I am running the latest version of Node LTS and even attempted to ‘npm install request’.  
Any help is appreciated. Thank you!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [November 16, 2023, 1:06am UTC](https://community.auth0.com/t/error-cannot-find-module-request-2-56-0-require-stack-data-io-node18-webtask-js/120983/3 "2023-11-16T01:06:46Z")

</div>

Hey there @saker132 welcome to the community!

Thanks for the detailed description of what you’re seeing 🙂 Do you have any rules and/or extension enabled by chance? I came across the following GH issue:

> <https://github.com/auth0-extensions/auth0-account-link-extension/issues/163>
>
> The account linking extension is failing on newly created tenants - I suspect th…at it does not work on the Node 18 runtime
> 
> Steps to reproduce:
> \- Create a tenant
> \- Install the "Auth0 Account Link" extension
> \- Open the "auth0-account-link-extension" rule and click "Save and Try" and then "Try"
> \- The rule fails with:
> \`\`\`
> ERROR: Cannot find module 'request@2.56.0'
> Require stack:
> \- /data/io/node18/8e88feb3-2f75-48a2-8a40-e54c2844983a/webtask.js
> \`\`\`
> 
> Raised by customers in https://github.com/auth0/nextjs-auth0/issues/1384 and https://community.auth0.com/t/auth0-account-link-error-with-importing-modules/114153

> [@Auth0 Account Link error with importing modules](https://community.auth0.com/t/auth0-account-link-error-with-importing-modules/114153/2):
>
> Manage to workaround this (other issues comes up) function (user, context, callback) { /\*\* \* This rule has been automatically generated by \* Unknown at 2023-08-21T18:29:51.731Z \*/ //Removed: var request = require('request@2.56.0'); var jwt = require('jsonwebtoken'); //Removed version targeting var queryString = require('querystring'); var Promise = require('native-or-bluebird@1.2.0'); var CONTINUE\_PROTOCOL = 'redirect-callback'; //... Apparently request is embedded in t…

---

<div class="post-metadata">

**Author:** ![saker132](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saker132/32/52470_2.png) [@saker132](https://community.auth0.com/u/saker132)\
**Post date:** [November 16, 2023, 5:44am UTC](https://community.auth0.com/t/error-cannot-find-module-request-2-56-0-require-stack-data-io-node18-webtask-js/120983/4 "2023-11-16T05:44:26Z")

</div>

Hey @ty.frith thanks for the reply. Unfortunately, I do not have any extensions or actions currently enabled. I have also attempted to use several different node versions, including the current one v20, node 18 and node 16. Still receiving the same error. I am also not sure where to use the work around code in the thread you shared.  
Thanks for the help!

---

<div class="post-metadata">

**Author:** ![saker132](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saker132/32/52470_2.png) [@saker132](https://community.auth0.com/u/saker132)\
**Post date:** [November 16, 2023, 6:10pm UTC](https://community.auth0.com/t/error-cannot-find-module-request-2-56-0-require-stack-data-io-node18-webtask-js/120983/5 "2023-11-16T18:10:29Z")

</div>

Update:  
I created a new account and after fiddling with settings as discussed in this post [https://community.auth0.com/t/401-unauthorized-when-obtaining-token-in-authorization-code-grant/44685/3](https://community.auth0.com/t/401-unauthorized-when-obtaining-token-in-authorization-code-grant/44685/3)  
I got it to work. I attempted to apply those same changes to my first account, yet still had issues. I ended up just deleting the tenant and starting over. Which was fine because I had just created it a few days ago anyway. Thanks for the help!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [November 17, 2023, 2:13am UTC](https://community.auth0.com/t/error-cannot-find-module-request-2-56-0-require-stack-data-io-node18-webtask-js/120983/6 "2023-11-17T02:13:50Z")

</div>

Hey @saker132 thanks for the update, and glad you were able to get this sorted 🙏 Sorry for the confusion!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 1, 2023, 2:14am UTC](https://community.auth0.com/t/error-cannot-find-module-request-2-56-0-require-stack-data-io-node18-webtask-js/120983/7 "2023-12-01T02:14:37Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
