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

Nextjs userbase auth , fab deployment error #330

Open
Rashmi-278 opened this issue Jan 5, 2021 · 0 comments
Open

Nextjs userbase auth , fab deployment error #330

Rashmi-278 opened this issue Jan 5, 2021 · 0 comments

Comments

@Rashmi-278
Copy link

Attempting to deploy https://github.com/vercel/next.js/tree/canary/examples/with-userbase to cloudflare workers using fab

npm run build , success
npx fab build , success

npx fab deploy failed

[Deployer] Assets deployed at https://fab-assets-cft1.s3.us-east-1.amazonaws.com
[@fab/deployer…] Starting server deploy…
[…er-cf-workers] ✔ Config valid.
[…er-cf-workers] Checking API token…
[…er-cf-workers] ✔ API token OK. Checking KV access…
[…er-cf-workers] ✔ KV access confirmed.
[…er-cf-workers] Compiling package to: .fab/deploy/cf-workers.js:
[…er-cf-workers] ✔ Generated working dir in .fab/deploy/cf-workers-TCZidFc5tkKqJJCZ5iA9g.
[…er-cf-workers] ✔ Unpacked FAB.
[…er-cf-workers] ✔ Generated worker file.
[…er-cf-workers] ✔ Wrote .fab/deploy/cf-workers.js in 0.10 seconds.
[…er-cf-workers] Creating KV namespace FAB cache (userbase-next)…
[…er-cf-workers] ✔ Created.
[…er-cf-workers] Uploading script…
Fab deploy failed!

Error uploading the script, got response:
{"result":null,"success":false,"errors":[{"code":10021,"message":"Uncaught Error: Some functionality, such as asynchronous I/O, timeouts, and generating random values, can only be performed while handling a request.\n  at line 12 in s.getRandomValues.e.exports\n  at line 86 in U9cI.e.exports\n  at line 86 in e.exports\n  at line 86\n  at line 86 in n\n  at line 86\n  at line 86 in JJdE\n  at line 86 in n\n  at line 86 in 1TCz\n  at line 86 in n\n"}],"messages":[]}
    Error: Fab deploy failed!
    Error uploading the script, got response:
        {"result":null,"success":false,"errors":[{"code":10021,"message":"Uncaught Error: Some functionality, such as asynchronous I/O, timeouts, and 
    generating random values, can only be performed while handling a request.\n  at line 12 in s.getRandomValues.e.exports\n  at line 86 in 
    U9cI.e.exports\n  at line 86 in e.exports\n  at line 86\n  at line 86 in n\n  at line 86\n  at line 86 in JJdE\n  at line 86 in n\n  at line 86 in 
    1TCz\n  at line 86 in n\n"}],"messages":[]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant