tyf
November 16, 2023, 1:06am
3
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:
opened 10:32AM - 22 Aug 23 UTC
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
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…