Troubleshooting¶
My client cannot connect¶
Check:
- Emulator is running:
curl http://localhost:9050/healthzreturns{"status":"ok"}. - Both env var and client option are set:
BIGQUERY_EMULATOR_HOST=host:portAND the client'sapi_endpointoverride. - For gRPC clients, the gRPC port (default 9060) is distinct from the REST port (default 9050).
- On Docker, the ports are published:
-p 9050:9050 -p 9060:9060.
My query works on real BigQuery but not on the emulator¶
- Check the compatibility matrix for feature status.
- Check out-of-scope.md for explicit exclusions.
- Check the error response —
UnsupportedFeatureErrorindicates a documented exclusion;invalidQueryindicates a translation bug. - If you believe the query should work and does not, open a bug report.
Coverage for JavaScript UDFs is missing¶
Install the optional extra:
Persistent mode is not retaining data¶
--persistent requires --data-dir to be set to a writable directory.
Check the logs for persistence_mode=persistent and
data_dir=/path/to/dir.
Port already in use¶
Use random free ports:
The startup logs show the bound ports.