Skip to content

'AppSession' object has no attribute 'get_current_session' #308

@dbogdoll

Description

@dbogdoll

I wanted to access the query and header values, and stumbled over the following documentation:

https://shiny.posit.co/py/api/core/Session.html

But looking to that object, it does not contain the methods which are described here:

dir(session)

returns

['__abstractmethods__', '__annotations__', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__slots__', '__str__', '__subclasshook__', '__weakref__', '_abc_impl', '_busy_count', '_conn', '_debug', '_decrement_busy_count', '_dispatch', '_downloads', '_dynamic_routes', '_file_upload_manager', '_flush', '_flush_callbacks', '_flushed_callbacks', '_handle_request', '_handle_request_impl', '_has_run_session_ended_tasks', '_increment_busy_count', '_init_message_handlers', '_is_hidden', '_manage_inputs', '_message_handlers', '_on_ended_callbacks', '_outbound_message_queues', '_print_error_message', '_process_ui', '_register_session_ended_callbacks', '_request_flush', '_run', '_run_session_ended_tasks', '_send_error_response', '_send_insert_ui', '_send_message', '_send_message_sync', '_send_progress', '_send_remove_ui', '_send_response', '_unhandled_error', 'app', 'bookmark', 'clientdata', 'close', 'download', 'dynamic_route', 'groups', 'http_conn', 'id', 'input', 'is_stub_session', 'make_scope', 'ns', 'on_ended', 'on_flush', 'on_flushed', 'output', 'root_scope', 'send_custom_message', 'send_input_message', 'set_message_handler', 'user']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions