Skip to content

[Bug?]: getRequestEvent().clientAddress in server functions is undefined in prod #2103

Closed

Description

@samualtnorman

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

you get undefined

Expected behavior 🤔

you get the client address

Steps to reproduce 🕹

Steps:

  1. Follow pnpm create solid
  2. Make a server function that uses getRequestEvent().clientAddress
  3. Make the client call it

Context 🔦

works fine in dev

Your environment 🌎

System:
    OS: NixOS 25.11 (Xantusia) x86_64
    CPU: 12th Gen Intel(R) Core(TM) i5-12500 (12) @ 4.60 GHz
Binaries:
    Node: 24.13.0
    pnpm: 10.28.2
npmPackages:
    @solidjs/router: 0.15.4
    @solidjs/start: 2.0.0-alpha.2
    @solidjs/vite-plugin-nitro-2: 0.1.0
    solid-js: 1.9.11
    vite: 7.3.1

Activity

  1. brenelz commented on Mar 28, 2026

    @brenelz
    Contributor

    Is this for v2 or v1 of solid start? (nevermind you have it in the version)

  2. brenelz commented on Jul 17, 2026

    @brenelz
    Contributor

    getRequestIP() / clientAddress undefined. I built the basic fixture for production on current main (Nitro v3) and both return the client IP correctly — the Nitro v3 migration fixed this. The two copilot/fix-* branches target the deleted plugin and are obsolete. These issues can be closed once a release with the Nitro v3 setup is what users install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Start 2.xtargeting SolidStart 2.x versionsbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions