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

Unable to get client IP in Bun from alpha 14 onwards #969

Closed
davidmytton opened this issue Jun 13, 2024 · 1 comment · Fixed by #970
Closed

Unable to get client IP in Bun from alpha 14 onwards #969

davidmytton opened this issue Jun 13, 2024 · 1 comment · Fixed by #970

Comments

@davidmytton
Copy link
Contributor

The Bun example examples/bun-rl fails from alpha 14 onwards:

✦Aj ERROR Encountered problem getting remote decision: [failed_precondition] client IP not provided
@blaine-arcjet
Copy link
Contributor

Localhost IP addresses are only allowed in development mode now. Bun doesn't set NODE_ENV for you like node does, so you need to set ARCJET_ENV in your environment file. I will update the .env.local.example files.

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

Successfully merging a pull request may close this issue.

2 participants