Accessing request object inside a route handle for HTTP GET command will throw due to missing request body.
Looks like $R is a flask function handler that registered to two different routes. This will cause a runtime error