# Error 500 pre-registration hook

**URL:** <https://community.auth0.com/t/error-500-pre-registration-hook/9015>\
**Category:** Get Help\
**Tags:** pre-user-registratio, error\
**Created:** [December 18, 2017, 7:33pm UTC](https://community.auth0.com/t/error-500-pre-registration-hook/9015 "2017-12-18T19:33:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baik.jaehyun.at](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@baik.jaehyun.at](https://community.auth0.com/u/baik.jaehyun.at)\
**Post date:** [December 18, 2017, 7:33pm UTC](https://community.auth0.com/t/error-500-pre-registration-hook/9015/1 "2017-12-18T19:33:03Z")

</div>

hi I m trying to use aws-sdk module in pre-registration hook

but I got this error:

{  
“message”: “Unable to compile the extensibility code as javascript”,  
“statusCode”: 500,  
“error\_description”: “Unable to compile the extensibility code as javascript”,  
“stack”: “SyntaxError: Unable to compile the extensibility code as javascript\n at Object.exports.runInThisContext (vm.js:53:16)\n at WebtaskModule.compileWebtask (/data/sandbox/lib/module.js:91:32)\n at Object.defaultJavascriptCompiler [as nodejsCompiler] (/data/sandbox/lib/compiler.js:124:30)\n at extensibilityPointCompiler (/data/sandbox/node\_modules/auth0-ext-compilers/lib/compilers/compilerFactory.js:24:17)\n at /data/sandbox/lib/compiler.js:236:17\n at /data/sandbox/node\_modules/async/dist/async.js:3866:24\n at replenish (/data/sandbox/node\_modules/async/dist/async.js:998:17)\n at iterateeCallback (/data/sandbox/node\_modules/async/dist/async.js:983:17)\n at /data/sandbox/node\_modules/async/dist/async.js:958:16\n at /data/sandbox/node\_modules/async/dist/async.js:3871:13”  
}

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [December 19, 2017, 6:27pm UTC](https://community.auth0.com/t/error-500-pre-registration-hook/9015/2 "2017-12-19T18:27:03Z")

</div>

The error would seem to point to some kind of issue with the hook’s code as the most likely source of the issue, however, you did not include the relevant code and any steps to create the hook which could allow for additional troubleshooting.

---

<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:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/error-500-pre-registration-hook/9015/3 "2018-03-02T05:57:51Z")

</div>


