Skip to content

com.google.cloud.core.ServiceOptions.getDefaultProjectId() does not work in App Engine local environment #2209

@jabubake

Description

@jabubake

APIs like google-cloud-pubsub require users to explicitly provide a project id.
When App Engine Maven Plugin is used to run locally using mvn appengine:run
ServiceOptions.getDefaultProjectId() returns no-app-id unless
<application>project-id</application> exists in appengine-web.xml

Note : returns project-id without the application entry when deployed to App Engine.

@ludoch @lesv

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.api: coreapi: pubsubIssues related to the Pub/Sub API.running on app enginestatus: blockedResolving the issue is dependent on other work.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions