You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 12, 2025. It is now read-only.
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
A service named
foobarthat takes no arguments is supposed to invoked with a URL like this:but in general terms that URL looks, to most eyes, the same as
However, the latter URL actually says something along the lines of "invoke the
foobarservice, and pass""as the first and only argument", which will, in the general case, cause an exception to be raised (if therun()function forfoobaris 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