Skip to content

Bug: Incorrect path to worker in task sample code #360

@DrifterAtSea

Description

@DrifterAtSea

In the sample code located at:

https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/appengine-java8/taskqueues-push/src/main/java/com/example/appengine/taskqueue/push/Enqueue.java

line 47. The code shows:

queue.add(TaskOptions.Builder.withUrl("/worker").param("key", key));

The path is incorrect. It should be "/taskqueues/worker":

queue.add(TaskOptions.Builder.withUrl("/taskqueues/worker").param("key", key));

Without this path corrected, the doPost at will not get called in the worker handler:

https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/appengine-java8/taskqueues-push/src/main/java/com/example/appengine/taskqueue/push/Worker.java

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚨This issue needs some love.api: appengineIssues related to the App Engine Admin API API.good first issueThis issue is a good place to started contributing to this repository.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions