Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Detail behavior of putting slash after service name in URL #496

@waxlamp

Description

@waxlamp

A service named foobar that takes no arguments is supposed to invoked with a URL like this:

http://example.com/foobar

but in general terms that URL looks, to most eyes, the same as

http://example.com/foobar/

However, the latter URL actually says something along the lines of "invoke the foobar service, and pass "" as the first and only argument", which will, in the general case, cause an exception to be raised (if the run() function for foobar is not designed to accept a varargs positional argument, etc.).

This is not a bug but could easily cause confusion for new Tangelo users. We should notate this specific case in the documentation on services to make clear that the slash in this case actually changes the semantics of the URL

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions