Skip to content

🐛 [fs-bq-schema-views] Getting "ProjectId must be non-empty" HTTP error #2540

@romulets

Description

@romulets

[READ] Step 1: Are you in the right place?

Yes.

[REQUIRED] Step 2: Describe your configuration

  • Extension name: fs-bq-schema-views
  • Extension version: 0.4.12
  • Configuration values (redact info where appropriate):
npx @firebaseextensions/fs-bq-schema-views \
  --non-interactive \
  --project=${project} \
  --big-query-project=${project} \
  --dataset=clinicas_firebase_export \
  --table-name-prefix=clinicas \
  --schema-files=./clinicas.json

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

What happened? How can we make the problem occur?
This could be a description, log/console output, etc.

I run the command

npx @firebaseextensions/fs-bq-schema-views \
  --non-interactive \
  --project=${project} \
  --big-query-project=${project} \
  --dataset=clinicas_firebase_export \
  --table-name-prefix=clinicas \
  --schema-files=./clinicas.json

It passes local validation, however it gives me back an API error. I suspect an API got updated, but not the script.

I know the project is being read from the stdin because if I run

npx @firebaseextensions/fs-bq-schema-views \
  --non-interactive \
  --project-a=${project} \
  --big-query-project=${project} \
  --dataset=clinicas_firebase_export \
  --table-name-prefix=clinicas \
  --schema-files=./clinicas.json

The error message is error: unknown option '--project-a=${project}'. So all the options are passed properly and the problem is once hitting an API.

Expected result

It generates the schema properly.

Actual result
{"code":400,"errors":[{"message":"ProjectId must be non-empty","domain":"global","reason":"badRequest"}],"response":{"headers":{"alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000","content-type":"application/json; charset=UTF-8","date":"Tue, 14 Oct 2025 13:44:45 GMT","transfer-encoding":"chunked"}},"message":"ProjectId must be non-empty"}
ProjectId must be non-empty
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions