after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
async def copy_room_tags_and_direct_to_room( self, old_room_id, new_room_id, user_id ) -> None: """Copies the tags and direct room state from one room to another. Args: old_room_id: The room ID of the old room. new_room_id: The room ID of the new room. user_id: The user's ID. ""...
async def copy_room_tags_and_direct_to_room( self, old_room_id, new_room_id, user_id ) -> None: """Copies the tags and direct room state from one room to another. Args: old_room_id: The room ID of the old room. new_room_id: The room ID of the new room. user_id: The user's ID. ""...
https://github.com/matrix-org/synapse/issues/8357
2020-09-20 07:53:32,780 - synapse.http.server - 80 - ERROR - GET-8896 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0xffff882be940 method='GET' uri='/_matrix/client/r0/sync?fil> Traceback (most recent call last): File "/home/ubuntu/synapse/env/lib/python3.8/site-packages/synapse/http/server.py...
AttributeError
async def _generate_sync_entry_for_rooms( self, sync_result_builder: "SyncResultBuilder", account_data_by_room: Dict[str, Dict[str, JsonDict]], ) -> Tuple[Set[str], Set[str], Set[str], Set[str]]: """Generates the rooms portion of the sync response. Populates the `sync_result_builder` with the result...
async def _generate_sync_entry_for_rooms( self, sync_result_builder: "SyncResultBuilder", account_data_by_room: Dict[str, Dict[str, JsonDict]], ) -> Tuple[Set[str], Set[str], Set[str], Set[str]]: """Generates the rooms portion of the sync response. Populates the `sync_result_builder` with the result...
https://github.com/matrix-org/synapse/issues/8357
2020-09-20 07:53:32,780 - synapse.http.server - 80 - ERROR - GET-8896 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0xffff882be940 method='GET' uri='/_matrix/client/r0/sync?fil> Traceback (most recent call last): File "/home/ubuntu/synapse/env/lib/python3.8/site-packages/synapse/http/server.py...
AttributeError
async def _get_rooms_changed( self, sync_result_builder: "SyncResultBuilder", ignored_users: FrozenSet[str] ) -> _RoomChanges: """Gets the the changes that have happened since the last sync.""" user_id = sync_result_builder.sync_config.user.to_string() since_token = sync_result_builder.since_token n...
async def _get_rooms_changed( self, sync_result_builder: "SyncResultBuilder", ignored_users: Set[str] ) -> _RoomChanges: """Gets the the changes that have happened since the last sync.""" user_id = sync_result_builder.sync_config.user.to_string() since_token = sync_result_builder.since_token now_tok...
https://github.com/matrix-org/synapse/issues/8357
2020-09-20 07:53:32,780 - synapse.http.server - 80 - ERROR - GET-8896 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0xffff882be940 method='GET' uri='/_matrix/client/r0/sync?fil> Traceback (most recent call last): File "/home/ubuntu/synapse/env/lib/python3.8/site-packages/synapse/http/server.py...
AttributeError
async def _get_all_rooms( self, sync_result_builder: "SyncResultBuilder", ignored_users: FrozenSet[str] ) -> _RoomChanges: """Returns entries for all rooms for the user. Args: sync_result_builder ignored_users: Set of users ignored by user. """ user_id = sync_result_builder.sync_c...
async def _get_all_rooms( self, sync_result_builder: "SyncResultBuilder", ignored_users: Set[str] ) -> _RoomChanges: """Returns entries for all rooms for the user. Args: sync_result_builder ignored_users: Set of users ignored by user. """ user_id = sync_result_builder.sync_config....
https://github.com/matrix-org/synapse/issues/8357
2020-09-20 07:53:32,780 - synapse.http.server - 80 - ERROR - GET-8896 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0xffff882be940 method='GET' uri='/_matrix/client/r0/sync?fil> Traceback (most recent call last): File "/home/ubuntu/synapse/env/lib/python3.8/site-packages/synapse/http/server.py...
AttributeError
async def _generate_room_entry( self, sync_result_builder: "SyncResultBuilder", ignored_users: FrozenSet[str], room_builder: "RoomSyncResultBuilder", ephemeral: List[JsonDict], tags: Optional[Dict[str, Dict[str, Any]]], account_data: Dict[str, JsonDict], always_include: bool = False, ): ...
async def _generate_room_entry( self, sync_result_builder: "SyncResultBuilder", ignored_users: Set[str], room_builder: "RoomSyncResultBuilder", ephemeral: List[JsonDict], tags: Optional[Dict[str, Dict[str, Any]]], account_data: Dict[str, JsonDict], always_include: bool = False, ): ""...
https://github.com/matrix-org/synapse/issues/8357
2020-09-20 07:53:32,780 - synapse.http.server - 80 - ERROR - GET-8896 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0xffff882be940 method='GET' uri='/_matrix/client/r0/sync?fil> Traceback (most recent call last): File "/home/ubuntu/synapse/env/lib/python3.8/site-packages/synapse/http/server.py...
AttributeError
async def is_ignored_by( self, ignored_user_id: str, ignorer_user_id: str, cache_context: _CacheContext ) -> bool: ignored_account_data = await self.get_global_account_data_by_type_for_user( AccountDataTypes.IGNORED_USER_LIST, ignorer_user_id, on_invalidate=cache_context.invalidate, ...
async def is_ignored_by( self, ignored_user_id: str, ignorer_user_id: str, cache_context: _CacheContext ) -> bool: ignored_account_data = await self.get_global_account_data_by_type_for_user( "m.ignored_user_list", ignorer_user_id, on_invalidate=cache_context.invalidate, ) if not ...
https://github.com/matrix-org/synapse/issues/8357
2020-09-20 07:53:32,780 - synapse.http.server - 80 - ERROR - GET-8896 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0xffff882be940 method='GET' uri='/_matrix/client/r0/sync?fil> Traceback (most recent call last): File "/home/ubuntu/synapse/env/lib/python3.8/site-packages/synapse/http/server.py...
AttributeError
async def filter_events_for_client( storage: Storage, user_id, events, is_peeking=False, always_include_ids=frozenset(), filter_send_to_client=True, ): """ Check which events a user is allowed to see. If the user can see the event but its sender asked for their data to be erased, pru...
async def filter_events_for_client( storage: Storage, user_id, events, is_peeking=False, always_include_ids=frozenset(), filter_send_to_client=True, ): """ Check which events a user is allowed to see. If the user can see the event but its sender asked for their data to be erased, pru...
https://github.com/matrix-org/synapse/issues/8357
2020-09-20 07:53:32,780 - synapse.http.server - 80 - ERROR - GET-8896 - Failed handle request via 'SyncRestServlet': <XForwardedForRequest at 0xffff882be940 method='GET' uri='/_matrix/client/r0/sync?fil> Traceback (most recent call last): File "/home/ubuntu/synapse/env/lib/python3.8/site-packages/synapse/http/server.py...
AttributeError
def _store_room_members_txn(self, txn, events, backfilled): """Store a room member in the database.""" def str_or_none(val: Any) -> Optional[str]: return val if isinstance(val, str) else None self.db_pool.simple_insert_many_txn( txn, table="room_memberships", values=[ ...
def _store_room_members_txn(self, txn, events, backfilled): """Store a room member in the database.""" self.db_pool.simple_insert_many_txn( txn, table="room_memberships", values=[ { "event_id": event.event_id, "user_id": event.state_key, ...
https://github.com/matrix-org/synapse/issues/8340
synapse_1 | 2020-09-17 15:44:59,053 - synapse.http.server - 84 - ERROR - POST-1715 - Failed handle request via 'JoinRoomAliasServlet': <XForwardedForRequest at 0x7f175a2b9550 method='POST' uri='/_matrix/client/r0/join/%23matrix-spec%3Amatrix.org' clientproto='HTTP/1.1' site=8008> synapse_1 | Traceback (most recent ca...
consumeError
async def on_POST(self, request): body = parse_json_object_from_request(request) client_addr = request.getClientIP() self.ratelimiter.ratelimit(client_addr, update=False) kind = b"user" if b"kind" in request.args: kind = request.args[b"kind"][0] if kind == b"guest": ret = awa...
async def on_POST(self, request): body = parse_json_object_from_request(request) client_addr = request.getClientIP() self.ratelimiter.ratelimit(client_addr, update=False) kind = b"user" if b"kind" in request.args: kind = request.args[b"kind"][0] if kind == b"guest": ret = awa...
https://github.com/matrix-org/synapse/issues/2832
янв 27 20:08:26 tad python[11795]: 2018-01-27 20:08:26,131 - synapse.http.server - 145 - ERROR - POST-2331- Failed handle request synapse.http.server._async_render on <synapse.rest.ClientRestResource object at 0x7f9e3d39a550>: <SynapseRequest at 0x7f9e3419b368 method=POST uri=/_matrix/client/r0/register?user_id=%40tele...
exceptions.UnboundLocalError
def _setup_stdlib_logging(config, log_config, logBeginner: LogBeginner): """ Set up Python stdlib logging. """ if log_config is None: log_format = ( "%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s" " - %(message)s" ) logger = logging.ge...
def _setup_stdlib_logging(config, log_config, logBeginner: LogBeginner): """ Set up Python stdlib logging. """ if log_config is None: log_format = ( "%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s" " - %(message)s" ) logger = logging.ge...
https://github.com/matrix-org/synapse/issues/4240
2018-10-25 15:58:33,973 - twisted - 243 - ERROR - POST-299240- Traceback (most recent call last): 2018-10-25 15:58:33,973 - twisted - 243 - ERROR - POST-299240- File "/usr/lib/python2.7/logging/handlers.py", line 76, in emit 2018-10-25 15:58:33,974 - twisted - 243 - ERROR - POST-299240- if self.shouldRollover(rec...
UnicodeDecodeError
def _log(event): if "log_text" in event: if event["log_text"].startswith("DNSDatagramProtocol starting on "): return if event["log_text"].startswith("(UDP Port "): return if event["log_text"].startswith("Timing out client"): return # this is a worka...
def _log(event): if "log_text" in event: if event["log_text"].startswith("DNSDatagramProtocol starting on "): return if event["log_text"].startswith("(UDP Port "): return if event["log_text"].startswith("Timing out client"): return return observer(e...
https://github.com/matrix-org/synapse/issues/4240
2018-10-25 15:58:33,973 - twisted - 243 - ERROR - POST-299240- Traceback (most recent call last): 2018-10-25 15:58:33,973 - twisted - 243 - ERROR - POST-299240- File "/usr/lib/python2.7/logging/handlers.py", line 76, in emit 2018-10-25 15:58:33,974 - twisted - 243 - ERROR - POST-299240- if self.shouldRollover(rec...
UnicodeDecodeError
def _purge_history_txn(self, txn, room_id, token_str, delete_local_events): token = RoomStreamToken.parse(token_str) # Tables that should be pruned: # event_auth # event_backward_extremities # event_edges # event_forward_extremities # event_json # event_push_acti...
def _purge_history_txn(self, txn, room_id, token_str, delete_local_events): token = RoomStreamToken.parse(token_str) # Tables that should be pruned: # event_auth # event_backward_extremities # event_edges # event_forward_extremities # event_json # event_push_acti...
https://github.com/matrix-org/synapse/issues/7693
2020-06-13 15:25:39,124 - synapse.storage.data_stores.main.events - 95 - ERROR - persist_events-9 - IntegrityError, retrying. Traceback (most recent call last): File "/opt/venvs/matrix-synapse/lib/python3.7/site-packages/synapse/storage/data_stores/main/events.py", line 93, in f res = yield func(self, *args, delete_exi...
twisted.internet.defer.FirstError
async def notify_device_update(self, user_id, device_ids): """Notify that a user's device(s) has changed. Pokes the notifier, and remote servers if the user is local. """ if not device_ids: # No changes to notify about, so this is a no-op. return users_who_share_room = await self.st...
async def notify_device_update(self, user_id, device_ids): """Notify that a user's device(s) has changed. Pokes the notifier, and remote servers if the user is local. """ users_who_share_room = await self.store.get_users_who_share_room_with_user(user_id) hosts = set() if self.hs.is_mine_id(user...
https://github.com/matrix-org/synapse/issues/7774
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks result = g.send(result) StopIteration During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/twisted/i...
TypeError
def _background_insert_retention(self, progress, batch_size): """Retrieves a list of all rooms within a range and inserts an entry for each of them into the room_retention table. NULLs the property's columns if missing from the retention event in the room's state (or NULLs all of them if there's no rete...
def _background_insert_retention(self, progress, batch_size): """Retrieves a list of all rooms within a range and inserts an entry for each of them into the room_retention table. NULLs the property's columns if missing from the retention event in the room's state (or NULLs all of them if there's no rete...
https://github.com/matrix-org/synapse/issues/7784
2020-07-05 10:59:39,226 - synapse.storage.background_updates - 227 - INFO - background_updates-0 - Starting update batch on background update 'insert_room_retention' 2020-07-05 10:59:39,232 - synapse.storage.background_updates - 114 - ERROR - background_updates-0 - Error doing update Traceback (most recent call last): ...
AttributeError
def _background_insert_retention_txn(txn): txn.execute( """ SELECT state.room_id, state.event_id, events.json FROM current_state_events as state LEFT JOIN event_json AS events ON (state.event_id = events.event_id) WHERE state.room_id > ? AND st...
def _background_insert_retention_txn(txn): txn.execute( """ SELECT state.room_id, state.event_id, events.json FROM current_state_events as state LEFT JOIN event_json AS events ON (state.event_id = events.event_id) WHERE state.room_id > ? AND st...
https://github.com/matrix-org/synapse/issues/7784
2020-07-05 10:59:39,226 - synapse.storage.background_updates - 227 - INFO - background_updates-0 - Starting update batch on background update 'insert_room_retention' 2020-07-05 10:59:39,232 - synapse.storage.background_updates - 114 - ERROR - background_updates-0 - Error doing update Traceback (most recent call last): ...
AttributeError
def _invalidate_get_users_with_receipts_in_room(self, room_id, receipt_type, user_id): if receipt_type != "m.read": return # Returns either an ObservableDeferred or the raw result res = self.get_users_with_read_receipts_in_room.cache.get( room_id, None, update_metrics=False ) # fir...
def _invalidate_get_users_with_receipts_in_room(self, room_id, receipt_type, user_id): if receipt_type != "m.read": return # Returns either an ObservableDeferred or the raw result res = self.get_users_with_read_receipts_in_room.cache.get( room_id, None, update_metrics=False ) # fir...
https://github.com/matrix-org/synapse/issues/3234
homeserver - 2018-05-18 00:40:04,123 - synapse.federation.federation_server - 643 - ERROR - Failed to handle edu 'm.receipt' Traceback (most recent call last): File "/home/matrix/.synapse/local/lib/python2.7/site-packages/synapse/federation/federation_server.py", line 639, in on_edu yield handler(origin, content) File ...
TypeError
def observe(self) -> defer.Deferred: """Observe the underlying deferred. This returns a brand new deferred that is resolved when the underlying deferred is resolved. Interacting with the returned deferred does not effect the underlying deferred. """ if not self._result: d = defer.Deferr...
def observe(self) -> defer.Deferred: """Observe the underlying deferred. This returns a brand new deferred that is resolved when the underlying deferred is resolved. Interacting with the returned deferred does not effect the underdlying deferred. """ if not self._result: d = defer.Defer...
https://github.com/matrix-org/synapse/issues/3234
homeserver - 2018-05-18 00:40:04,123 - synapse.federation.federation_server - 643 - ERROR - Failed to handle edu 'm.receipt' Traceback (most recent call last): File "/home/matrix/.synapse/local/lib/python2.7/site-packages/synapse/federation/federation_server.py", line 639, in on_edu yield handler(origin, content) File ...
TypeError
def _invalidate_get_users_with_receipts_in_room(self, room_id, receipt_type, user_id): if receipt_type != "m.read": return # Returns either an ObservableDeferred or the raw result res = self.get_users_with_read_receipts_in_room.cache.get( room_id, None, update_metrics=False,...
def _invalidate_get_users_with_receipts_in_room(self, room_id, receipt_type, user_id): if receipt_type != "m.read": return # Returns an ObservableDeferred res = self.get_users_with_read_receipts_in_room.cache.get( room_id, None, update_metrics=False, ) if res: ...
https://github.com/matrix-org/synapse/issues/3234
homeserver - 2018-05-18 00:40:04,123 - synapse.federation.federation_server - 643 - ERROR - Failed to handle edu 'm.receipt' Traceback (most recent call last): File "/home/matrix/.synapse/local/lib/python2.7/site-packages/synapse/federation/federation_server.py", line 639, in on_edu yield handler(origin, content) File ...
TypeError
def register_user(self, localpart, displayname=None, emails=[]): """Registers a new user with given localpart and optional displayname, emails. Args: localpart (str): The localpart of the new user. displayname (str|None): The displayname of the new user. emails (List[str]): Emails to bi...
def register_user(self, localpart, displayname=None, emails=[]): """Registers a new user with given localpart and optional displayname, emails. Args: localpart (str): The localpart of the new user. displayname (str|None): The displayname of the new user. emails (List[str]): Emails to bi...
https://github.com/matrix-org/synapse/issues/7683
2020-06-11 21:42:52,523 - synapse.http.server - 113 - ERROR - - Failed handle request via 'LoginRestServlet': <XForwardedForRequest at 0x7f89689119e8 method='POST' uri='/_matrix/client/r0/login' clientproto='HTTP/1.1' site=8008> Traceback (most recent call last): File "/app/code/env/lib/python3.6/site-packages/twisted...
TypeError
def register_device(self, user_id, device_id=None, initial_display_name=None): """Register a device for a user and generate an access token. Args: user_id (str): full canonical @user:id device_id (str|None): The device ID to check, or None to generate a new one. initial_disp...
def register_device(self, user_id, device_id=None, initial_display_name=None): """Register a device for a user and generate an access token. Args: user_id (str): full canonical @user:id device_id (str|None): The device ID to check, or None to generate a new one. initial_disp...
https://github.com/matrix-org/synapse/issues/7683
2020-06-11 21:42:52,523 - synapse.http.server - 113 - ERROR - - Failed handle request via 'LoginRestServlet': <XForwardedForRequest at 0x7f89689119e8 method='POST' uri='/_matrix/client/r0/login' clientproto='HTTP/1.1' site=8008> Traceback (most recent call last): File "/app/code/env/lib/python3.6/site-packages/twisted...
TypeError
def _event_match(self, condition: dict, user_id: str) -> bool: pattern = condition.get("pattern", None) if not pattern: pattern_type = condition.get("pattern_type", None) if pattern_type == "user_id": pattern = user_id elif pattern_type == "user_localpart": patte...
def _event_match(self, condition: dict, user_id: str) -> bool: pattern = condition.get("pattern", None) if not pattern: pattern_type = condition.get("pattern_type", None) if pattern_type == "user_id": pattern = user_id elif pattern_type == "user_localpart": patte...
https://github.com/matrix-org/synapse/issues/7700
2020-06-15 19:00:06,270 - synapse.federation.federation_server - 290 - ERROR - PUT-1359406-$1592244001432863GBGGz:matrix.org- Failed to handle PDU $1592244001432863GBGGz:matrix.org ... Traceback (most recent call last): File "/opt/synapse/synapse/synapse/federation/federation_server.py", line 279, in process_pdus_for_r...
TypeError
def _contains_display_name(self, display_name: str) -> bool: if not display_name: return False body = self._event.content.get("body", None) if not body or not isinstance(body, str): return False # Similar to _glob_matches, but do not treat display_name as a glob. r = regex_cache.ge...
def _contains_display_name(self, display_name: str) -> bool: if not display_name: return False body = self._event.content.get("body", None) if not body: return False # Similar to _glob_matches, but do not treat display_name as a glob. r = regex_cache.get((display_name, False, True)...
https://github.com/matrix-org/synapse/issues/7700
2020-06-15 19:00:06,270 - synapse.federation.federation_server - 290 - ERROR - PUT-1359406-$1592244001432863GBGGz:matrix.org- Failed to handle PDU $1592244001432863GBGGz:matrix.org ... Traceback (most recent call last): File "/opt/synapse/synapse/synapse/federation/federation_server.py", line 279, in process_pdus_for_r...
TypeError
def add_resizable_cache(cache_name: str, cache_resize_callback: Callable): """Register a cache that's size can dynamically change Args: cache_name: A reference to the cache cache_resize_callback: A callback function that will be ran whenever the cache needs to be resized """ ...
def add_resizable_cache(cache_name: str, cache_resize_callback: Callable): """Register a cache that's size can dynamically change Args: cache_name: A reference to the cache cache_resize_callback: A callback function that will be ran whenever the cache needs to be resized """ ...
https://github.com/matrix-org/synapse/issues/7610
2020-06-01 05:34:30,471 - synapse.storage.data_stores.main.event_push_actions - 503 - INFO - None - Found stream ordering 1 month ago: it's 447264 2020-06-01 05:34:30,472 - synapse.storage.data_stores.main.event_push_actions - 506 - INFO - None - Searching for stream ordering 1 day ago 2020-06-01 05:34:30,575 - synapse...
RuntimeError
def reset(): """Resets the caches to their defaults. Used for tests.""" properties.default_factor_size = float( os.environ.get(_CACHE_PREFIX, _DEFAULT_FACTOR_SIZE) ) properties.resize_all_caches_func = None with _CACHES_LOCK: _CACHES.clear()
def reset(): """Resets the caches to their defaults. Used for tests.""" properties.default_factor_size = float( os.environ.get(_CACHE_PREFIX, _DEFAULT_FACTOR_SIZE) ) properties.resize_all_caches_func = None _CACHES.clear()
https://github.com/matrix-org/synapse/issues/7610
2020-06-01 05:34:30,471 - synapse.storage.data_stores.main.event_push_actions - 503 - INFO - None - Found stream ordering 1 month ago: it's 447264 2020-06-01 05:34:30,472 - synapse.storage.data_stores.main.event_push_actions - 506 - INFO - None - Searching for stream ordering 1 day ago 2020-06-01 05:34:30,575 - synapse...
RuntimeError
def resize_all_caches(self): """Ensure all cache sizes are up to date For each cache, run the mapped callback function with either a specific cache factor or the default, global one. """ # block other threads from modifying _CACHES while we iterate it. with _CACHES_LOCK: for cache_name,...
def resize_all_caches(self): """Ensure all cache sizes are up to date For each cache, run the mapped callback function with either a specific cache factor or the default, global one. """ for cache_name, callback in _CACHES.items(): new_factor = self.cache_factors.get(cache_name, self.global...
https://github.com/matrix-org/synapse/issues/7610
2020-06-01 05:34:30,471 - synapse.storage.data_stores.main.event_push_actions - 503 - INFO - None - Found stream ordering 1 month ago: it's 447264 2020-06-01 05:34:30,472 - synapse.storage.data_stores.main.event_push_actions - 506 - INFO - None - Searching for stream ordering 1 day ago 2020-06-01 05:34:30,575 - synapse...
RuntimeError
def __init__(self, hs): super(GenericWorkerReplicationHandler, self).__init__(hs) self.store = hs.get_datastore() self.typing_handler = hs.get_typing_handler() self.presence_handler = hs.get_presence_handler() # type: GenericWorkerPresence self.notifier = hs.get_notifier() self.notify_pushers...
def __init__(self, hs): super(GenericWorkerReplicationHandler, self).__init__(hs) self.store = hs.get_datastore() self.typing_handler = hs.get_typing_handler() self.presence_handler = hs.get_presence_handler() # type: GenericWorkerPresence self.notifier = hs.get_notifier() self.notify_pushers...
https://github.com/matrix-org/synapse/issues/7535
synapse.app.generic_worker: [replication-RDATA-federation-3176] Error updating federation stream position Traceback (most recent call last): File "/var/lib/synapse/venv/lib/python3.8/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks result = g.send(result) StopIteration During handling of the ab...
AttributeError
async def _process_and_notify(self, stream_name, instance_name, token, rows): try: if self.send_handler: await self.send_handler.process_replication_rows(stream_name, token, rows) if stream_name == PushRulesStream.NAME: self.notifier.on_new_event( "push_rules...
async def _process_and_notify(self, stream_name, instance_name, token, rows): try: if self.send_handler: await self.send_handler.process_replication_rows(stream_name, token, rows) if stream_name == PushRulesStream.NAME: self.notifier.on_new_event( "push_rules...
https://github.com/matrix-org/synapse/issues/7535
synapse.app.generic_worker: [replication-RDATA-federation-3176] Error updating federation stream position Traceback (most recent call last): File "/var/lib/synapse/venv/lib/python3.8/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks result = g.send(result) StopIteration During handling of the ab...
AttributeError
def __init__(self, hs: GenericWorkerServer): self.store = hs.get_datastore() self._is_mine_id = hs.is_mine_id self.federation_sender = hs.get_federation_sender() self._hs = hs # if the worker is restarted, we want to pick up where we left off in # the replication stream, so load the position fr...
def __init__(self, hs: GenericWorkerServer, replication_client): self.store = hs.get_datastore() self._is_mine_id = hs.is_mine_id self.federation_sender = hs.get_federation_sender() self.replication_client = replication_client self.federation_position = self.store.federation_out_pos_startup sel...
https://github.com/matrix-org/synapse/issues/7535
synapse.app.generic_worker: [replication-RDATA-federation-3176] Error updating federation stream position Traceback (most recent call last): File "/var/lib/synapse/venv/lib/python3.8/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks result = g.send(result) StopIteration During handling of the ab...
AttributeError
async def update_token(self, token): """Update the record of where we have processed to in the federation stream. Called after we have processed a an update received over replication. Sends a FEDERATION_ACK back to the master, and stores the token that we have processed in `federation_stream_position`...
async def update_token(self, token): try: self.federation_position = token # We linearize here to ensure we don't have races updating the token with await self._fed_position_linearizer.queue(None): if self._last_ack < self.federation_position: await self.store.up...
https://github.com/matrix-org/synapse/issues/7535
synapse.app.generic_worker: [replication-RDATA-federation-3176] Error updating federation stream position Traceback (most recent call last): File "/var/lib/synapse/venv/lib/python3.8/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks result = g.send(result) StopIteration During handling of the ab...
AttributeError
def __init__(self, hs): self.store = hs.get_datastore() self.federation = hs.get_federation_client() self.device_handler = hs.get_device_handler() self.is_mine = hs.is_mine self.clock = hs.get_clock() self._edu_updater = SigningKeyEduUpdater(hs, self) federation_registry = hs.get_federatio...
def __init__(self, hs): self.store = hs.get_datastore() self.federation = hs.get_federation_client() self.device_handler = hs.get_device_handler() self.is_mine = hs.is_mine self.clock = hs.get_clock() self._edu_updater = SigningKeyEduUpdater(hs, self) self._is_master = hs.config.worker_app...
https://github.com/matrix-org/synapse/issues/7252
2020-04-08 09:38:48,601 - synapse.federation.federation_server - 781 - ERROR - PUT-22124562 - Failed to handle edu 'org.matrix.signing_key_update' Capture point (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/lib/python3....
AttributeError
def _get_public_room_list( self, limit: Optional[int] = None, since_token: Optional[str] = None, search_filter: Optional[Dict] = None, network_tuple: ThirdPartyInstanceID = EMPTY_THIRD_PARTY_ID, from_federation: bool = False, ) -> Dict[str, Any]: """Generate a public room list. Args: ...
def _get_public_room_list( self, limit=None, since_token=None, search_filter=None, network_tuple=EMPTY_THIRD_PARTY_ID, from_federation=False, ): """Generate a public room list. Args: limit (int|None): Maximum amount of rooms to return. since_token (str|None) searc...
https://github.com/matrix-org/synapse/issues/6325
2019-11-04 19:52:26,074 - synapse.http.server - 109 - ERROR - POST-705775- Failed handle request via 'PublicRoomListRestServlet': <XForwardedForRequest at 0x80e5ef048 method='POST' uri='/_matrix/client/r0/publicRooms?server=domain.tld&amp;access_token=<redacted>' clientproto='HTTP/1.1' site=8008> Traceback (most recent...
AttributeError
async def on_GET(self, request): server = parse_string(request, "server", default=None) try: await self.auth.get_user_by_req(request, allow_guest=True) except InvalidClientCredentialsError as e: # Option to allow servers to require auth when accessing # /publicRooms via CS API. This...
async def on_GET(self, request): server = parse_string(request, "server", default=None) try: await self.auth.get_user_by_req(request, allow_guest=True) except InvalidClientCredentialsError as e: # Option to allow servers to require auth when accessing # /publicRooms via CS API. This...
https://github.com/matrix-org/synapse/issues/6325
2019-11-04 19:52:26,074 - synapse.http.server - 109 - ERROR - POST-705775- Failed handle request via 'PublicRoomListRestServlet': <XForwardedForRequest at 0x80e5ef048 method='POST' uri='/_matrix/client/r0/publicRooms?server=domain.tld&amp;access_token=<redacted>' clientproto='HTTP/1.1' site=8008> Traceback (most recent...
AttributeError
async def on_POST(self, request): await self.auth.get_user_by_req(request, allow_guest=True) server = parse_string(request, "server", default=None) content = parse_json_object_from_request(request) limit = int(content.get("limit", 100)) # type: Optional[int] since_token = content.get("since", Non...
async def on_POST(self, request): await self.auth.get_user_by_req(request, allow_guest=True) server = parse_string(request, "server", default=None) content = parse_json_object_from_request(request) limit = int(content.get("limit", 100)) # type: Optional[int] since_token = content.get("since", Non...
https://github.com/matrix-org/synapse/issues/6325
2019-11-04 19:52:26,074 - synapse.http.server - 109 - ERROR - POST-705775- Failed handle request via 'PublicRoomListRestServlet': <XForwardedForRequest at 0x80e5ef048 method='POST' uri='/_matrix/client/r0/publicRooms?server=domain.tld&amp;access_token=<redacted>' clientproto='HTTP/1.1' site=8008> Traceback (most recent...
AttributeError
def upload_room_keys(self, user_id, version, room_keys): """Bulk upload a list of room keys into a given backup version, asserting that the given version is the current backup version. room_keys are merged into the current backup as described in RoomKeysServlet.on_PUT(). Args: user_id(str): th...
def upload_room_keys(self, user_id, version, room_keys): """Bulk upload a list of room keys into a given backup version, asserting that the given version is the current backup version. room_keys are merged into the current backup as described in RoomKeysServlet.on_PUT(). Args: user_id(str): th...
https://github.com/matrix-org/synapse/issues/7036
[homeserver_1] 2020-03-04 17:46:42,842 - synapse.http.server - 110 - ERROR - PUT-58- Failed handle request via 'RoomKeysServlet': <XForwardedForRequest at 0x7fd4f193bd68 method='PUT' uri='/_matrix/client/unstable/room_keys/keys?version=2' clientproto='HTTP/1.0' site=8118> Traceback (most recent call last): File "/home/...
psycopg2.ProgrammingError
async def on_PUT(self, request, user_id): requester = await self.auth.get_user_by_req(request) await assert_user_is_admin(self.auth, requester.user) target_user = UserID.from_string(user_id) body = parse_json_object_from_request(request) if not self.hs.is_mine(target_user): raise SynapseEr...
async def on_PUT(self, request, user_id): requester = await self.auth.get_user_by_req(request) await assert_user_is_admin(self.auth, requester.user) target_user = UserID.from_string(user_id) body = parse_json_object_from_request(request) if not self.hs.is_mine(target_user): raise SynapseEr...
https://github.com/matrix-org/synapse/issues/6910
2020-02-13 19:15:53,449 - synapse.http.server - 110 - ERROR - PUT-31 - Failed handle request via 'UserRestServletV2': <SynapseRequest at 0x7f6a6035bfd0 method='PUT' uri='/_synapse/admin/v2/users/@mjolnir-dev:redacted' clientproto='HTTP/1.0' site=8008> Traceback (most recent call last): File "/home/matrix/.synapse/local...
AttributeError
async def on_PUT(self, request, user_id): requester = await self.auth.get_user_by_req(request) await assert_user_is_admin(self.auth, requester.user) auth_user = requester.user target_user = UserID.from_string(user_id) body = parse_json_object_from_request(request) assert_params_in_dict(body, ...
async def on_PUT(self, request, user_id): requester = await self.auth.get_user_by_req(request) await assert_user_is_admin(self.auth, requester.user) auth_user = requester.user target_user = UserID.from_string(user_id) body = parse_json_object_from_request(request) assert_params_in_dict(body, ...
https://github.com/matrix-org/synapse/issues/6910
2020-02-13 19:15:53,449 - synapse.http.server - 110 - ERROR - PUT-31 - Failed handle request via 'UserRestServletV2': <SynapseRequest at 0x7f6a6035bfd0 method='PUT' uri='/_synapse/admin/v2/users/@mjolnir-dev:redacted' clientproto='HTTP/1.0' site=8008> Traceback (most recent call last): File "/home/matrix/.synapse/local...
AttributeError
def set_server_admin(self, user, admin): """Sets whether a user is an admin of this homeserver. Args: user (UserID): user ID of the user to test admin (bool): true iff the user is to be a server admin, false otherwise. """ def set_server_admin_txn(txn): self.db.simp...
def set_server_admin(self, user, admin): """Sets whether a user is an admin of this homeserver. Args: user (UserID): user ID of the user to test admin (bool): true iff the user is to be a server admin, false otherwise. """ return self.db.simple_update_one( table="use...
https://github.com/matrix-org/synapse/issues/6910
2020-02-13 19:15:53,449 - synapse.http.server - 110 - ERROR - PUT-31 - Failed handle request via 'UserRestServletV2': <SynapseRequest at 0x7f6a6035bfd0 method='PUT' uri='/_synapse/admin/v2/users/@mjolnir-dev:redacted' clientproto='HTTP/1.0' site=8008> Traceback (most recent call last): File "/home/matrix/.synapse/local...
AttributeError
async def on_PUT(self, request, user_id): requester = await self.auth.get_user_by_req(request) await assert_user_is_admin(self.auth, requester.user) target_user = UserID.from_string(user_id) body = parse_json_object_from_request(request) if not self.hs.is_mine(target_user): raise SynapseEr...
async def on_PUT(self, request, user_id): requester = await self.auth.get_user_by_req(request) await assert_user_is_admin(self.auth, requester.user) target_user = UserID.from_string(user_id) body = parse_json_object_from_request(request) if not self.hs.is_mine(target_user): raise SynapseEr...
https://github.com/matrix-org/synapse/issues/6910
2020-02-13 19:15:53,449 - synapse.http.server - 110 - ERROR - PUT-31 - Failed handle request via 'UserRestServletV2': <SynapseRequest at 0x7f6a6035bfd0 method='PUT' uri='/_synapse/admin/v2/users/@mjolnir-dev:redacted' clientproto='HTTP/1.0' site=8008> Traceback (most recent call last): File "/home/matrix/.synapse/local...
AttributeError
def _check_sigs_and_hash_and_fetch( self, origin: str, pdus: List[EventBase], room_version: str, outlier: bool = False, include_none: bool = False, ): """Takes a list of PDUs and checks the signatures and hashs of each one. If a PDU fails its signature check then we check if we have it i...
def _check_sigs_and_hash_and_fetch( self, origin, pdus, room_version, outlier=False, include_none=False ): """Takes a list of PDUs and checks the signatures and hashs of each one. If a PDU fails its signature check then we check if we have it in the database and if not then request if from the originati...
https://github.com/matrix-org/synapse/issues/6978
2020-02-24 14:00:10,088 - synapse.federation.federation_client - 421 - WARNING - POST-1957- Failed to send_join via matrix.org ... Traceback (most recent call last): File "/home/synapse/matrixtest/synapse/federation/federation_client.py", line 402, in _try_destination_list res = await callback(destination) File "/home/...
AttributeError
def handle_check_result(pdu: EventBase, deferred: Deferred): try: res = yield make_deferred_yieldable(deferred) except SynapseError: res = None if not res: # Check local db. res = yield self.store.get_event( pdu.event_id, allow_rejected=True, allow_none=True ...
def handle_check_result(pdu, deferred): try: res = yield make_deferred_yieldable(deferred) except SynapseError: res = None if not res: # Check local db. res = yield self.store.get_event( pdu.event_id, allow_rejected=True, allow_none=True ) if not res...
https://github.com/matrix-org/synapse/issues/6978
2020-02-24 14:00:10,088 - synapse.federation.federation_client - 421 - WARNING - POST-1957- Failed to send_join via matrix.org ... Traceback (most recent call last): File "/home/synapse/matrixtest/synapse/federation/federation_client.py", line 402, in _try_destination_list res = await callback(destination) File "/home/...
AttributeError
def _check_sigs_and_hash(self, room_version: str, pdu: EventBase) -> Deferred: return make_deferred_yieldable(self._check_sigs_and_hashes(room_version, [pdu])[0])
def _check_sigs_and_hash(self, room_version, pdu): return make_deferred_yieldable(self._check_sigs_and_hashes(room_version, [pdu])[0])
https://github.com/matrix-org/synapse/issues/6978
2020-02-24 14:00:10,088 - synapse.federation.federation_client - 421 - WARNING - POST-1957- Failed to send_join via matrix.org ... Traceback (most recent call last): File "/home/synapse/matrixtest/synapse/federation/federation_client.py", line 402, in _try_destination_list res = await callback(destination) File "/home/...
AttributeError
def _check_sigs_and_hashes( self, room_version: str, pdus: List[EventBase] ) -> List[Deferred]: """Checks that each of the received events is correctly signed by the sending server. Args: room_version: The room version of the PDUs pdus: the events to be checked Returns: For...
def _check_sigs_and_hashes(self, room_version, pdus): """Checks that each of the received events is correctly signed by the sending server. Args: room_version (str): The room version of the PDUs pdus (list[FrozenEvent]): the events to be checked Returns: list[Deferred]: for eac...
https://github.com/matrix-org/synapse/issues/6978
2020-02-24 14:00:10,088 - synapse.federation.federation_client - 421 - WARNING - POST-1957- Failed to send_join via matrix.org ... Traceback (most recent call last): File "/home/synapse/matrixtest/synapse/federation/federation_client.py", line 402, in _try_destination_list res = await callback(destination) File "/home/...
AttributeError
def callback(_, pdu: EventBase): with PreserveLoggingContext(ctx): if not check_event_content_hash(pdu): # let's try to distinguish between failures because the event was # redacted (which are somewhat expected) vs actual ball-tampering # incidents. # ...
def callback(_, pdu): with PreserveLoggingContext(ctx): if not check_event_content_hash(pdu): # let's try to distinguish between failures because the event was # redacted (which are somewhat expected) vs actual ball-tampering # incidents. # # This ...
https://github.com/matrix-org/synapse/issues/6978
2020-02-24 14:00:10,088 - synapse.federation.federation_client - 421 - WARNING - POST-1957- Failed to send_join via matrix.org ... Traceback (most recent call last): File "/home/synapse/matrixtest/synapse/federation/federation_client.py", line 402, in _try_destination_list res = await callback(destination) File "/home/...
AttributeError
def errback(failure: Failure, pdu: EventBase): failure.trap(SynapseError) with PreserveLoggingContext(ctx): logger.warning( "Signature check failed for %s: %s", pdu.event_id, failure.getErrorMessage(), ) return failure
def errback(failure, pdu): failure.trap(SynapseError) with PreserveLoggingContext(ctx): logger.warning( "Signature check failed for %s: %s", pdu.event_id, failure.getErrorMessage(), ) return failure
https://github.com/matrix-org/synapse/issues/6978
2020-02-24 14:00:10,088 - synapse.federation.federation_client - 421 - WARNING - POST-1957- Failed to send_join via matrix.org ... Traceback (most recent call last): File "/home/synapse/matrixtest/synapse/federation/federation_client.py", line 402, in _try_destination_list res = await callback(destination) File "/home/...
AttributeError
def _check_sigs_on_pdus( keyring: Keyring, room_version: str, pdus: Iterable[EventBase] ) -> List[Deferred]: """Check that the given events are correctly signed Args: keyring: keyring object to do the checks room_version: the room version of the PDUs pdus: the events to be checked ...
def _check_sigs_on_pdus(keyring, room_version, pdus): """Check that the given events are correctly signed Args: keyring (synapse.crypto.Keyring): keyring object to do the checks room_version (str): the room version of the PDUs pdus (Collection[EventBase]): the events to be checked ...
https://github.com/matrix-org/synapse/issues/6978
2020-02-24 14:00:10,088 - synapse.federation.federation_client - 421 - WARNING - POST-1957- Failed to send_join via matrix.org ... Traceback (most recent call last): File "/home/synapse/matrixtest/synapse/federation/federation_client.py", line 402, in _try_destination_list res = await callback(destination) File "/home/...
AttributeError
def _flatten_deferred_list(deferreds: List[Deferred]) -> Deferred: """Given a list of deferreds, either return the single deferred, combine into a DeferredList, or return an already resolved deferred. """ if len(deferreds) > 1: return DeferredList(deferreds, fireOnOneErrback=True, consumeErrors=...
def _flatten_deferred_list(deferreds): """Given a list of deferreds, either return the single deferred, combine into a DeferredList, or return an already resolved deferred. """ if len(deferreds) > 1: return DeferredList(deferreds, fireOnOneErrback=True, consumeErrors=True) elif len(deferreds...
https://github.com/matrix-org/synapse/issues/6978
2020-02-24 14:00:10,088 - synapse.federation.federation_client - 421 - WARNING - POST-1957- Failed to send_join via matrix.org ... Traceback (most recent call last): File "/home/synapse/matrixtest/synapse/federation/federation_client.py", line 402, in _try_destination_list res = await callback(destination) File "/home/...
AttributeError
def _is_invite_via_3pid(event: EventBase) -> bool: return ( event.type == EventTypes.Member and event.membership == Membership.INVITE and "third_party_invite" in event.content )
def _is_invite_via_3pid(event): return ( event.type == EventTypes.Member and event.membership == Membership.INVITE and "third_party_invite" in event.content )
https://github.com/matrix-org/synapse/issues/6978
2020-02-24 14:00:10,088 - synapse.federation.federation_client - 421 - WARNING - POST-1957- Failed to send_join via matrix.org ... Traceback (most recent call last): File "/home/synapse/matrixtest/synapse/federation/federation_client.py", line 402, in _try_destination_list res = await callback(destination) File "/home/...
AttributeError
async def backfill( self, dest: str, room_id: str, limit: int, extremities: Iterable[str] ) -> Optional[List[EventBase]]: """Requests some more historic PDUs for the given room from the given destination server. Args: dest (str): The remote homeserver to ask. room_id (str): The room_id ...
async def backfill( self, dest: str, room_id: str, limit: int, extremities: Iterable[str] ) -> List[EventBase]: """Requests some more historic PDUs for the given room from the given destination server. Args: dest (str): The remote homeserver to ask. room_id (str): The room_id to backfil...
https://github.com/matrix-org/synapse/issues/6978
2020-02-24 14:00:10,088 - synapse.federation.federation_client - 421 - WARNING - POST-1957- Failed to send_join via matrix.org ... Traceback (most recent call last): File "/home/synapse/matrixtest/synapse/federation/federation_client.py", line 402, in _try_destination_list res = await callback(destination) File "/home/...
AttributeError
async def get_pdu( self, destinations: Iterable[str], event_id: str, room_version: RoomVersion, outlier: bool = False, timeout: Optional[int] = None, ) -> Optional[EventBase]: """Requests the PDU with given origin and ID from the remote home servers. Will attempt to get the PDU from...
async def get_pdu( self, destinations: Iterable[str], event_id: str, room_version: RoomVersion, outlier: bool = False, timeout: Optional[int] = None, ) -> Optional[EventBase]: """Requests the PDU with given origin and ID from the remote home servers. Will attempt to get the PDU from...
https://github.com/matrix-org/synapse/issues/6978
2020-02-24 14:00:10,088 - synapse.federation.federation_client - 421 - WARNING - POST-1957- Failed to send_join via matrix.org ... Traceback (most recent call last): File "/home/synapse/matrixtest/synapse/federation/federation_client.py", line 402, in _try_destination_list res = await callback(destination) File "/home/...
AttributeError
async def send_join( self, destinations: Iterable[str], pdu: EventBase, room_version: RoomVersion ) -> Dict[str, Any]: """Sends a join event to one of a list of homeservers. Doing so will cause the remote server to add the event to the graph, and send the event out to the rest of the federation. A...
async def send_join( self, destinations: Iterable[str], pdu: EventBase, room_version: RoomVersion ) -> Dict[str, Any]: """Sends a join event to one of a list of homeservers. Doing so will cause the remote server to add the event to the graph, and send the event out to the rest of the federation. A...
https://github.com/matrix-org/synapse/issues/6978
2020-02-24 14:00:10,088 - synapse.federation.federation_client - 421 - WARNING - POST-1957- Failed to send_join via matrix.org ... Traceback (most recent call last): File "/home/synapse/matrixtest/synapse/federation/federation_client.py", line 402, in _try_destination_list res = await callback(destination) File "/home/...
AttributeError
async def send_request(destination) -> Dict[str, Any]: content = await self._do_send_join(destination, pdu) logger.debug("Got content: %s", content) state = [ event_from_pdu_json(p, room_version, outlier=True) for p in content.get("state", []) ] auth_chain = [ event_from_p...
async def send_request(destination) -> Dict[str, Any]: content = await self._do_send_join(destination, pdu) logger.debug("Got content: %s", content) state = [ event_from_pdu_json(p, room_version, outlier=True) for p in content.get("state", []) ] auth_chain = [ event_from_p...
https://github.com/matrix-org/synapse/issues/6978
2020-02-24 14:00:10,088 - synapse.federation.federation_client - 421 - WARNING - POST-1957- Failed to send_join via matrix.org ... Traceback (most recent call last): File "/home/synapse/matrixtest/synapse/federation/federation_client.py", line 402, in _try_destination_list res = await callback(destination) File "/home/...
AttributeError
def read_config(self, config: dict, config_dir_path: str, **kwargs): acme_config = config.get("acme", None) if acme_config is None: acme_config = {} self.acme_enabled = acme_config.get("enabled", False) # hyperlink complains on py2 if this is not a Unicode self.acme_url = six.text_type( ...
def read_config(self, config: dict, config_dir_path: str, **kwargs): acme_config = config.get("acme", None) if acme_config is None: acme_config = {} self.acme_enabled = acme_config.get("enabled", False) # hyperlink complains on py2 if this is not a Unicode self.acme_url = six.text_type( ...
https://github.com/matrix-org/synapse/issues/6817
synapse_1 | Traceback (most recent call last): synapse_1 | File "/usr/local/lib/python3.8/runpy.py", line 192, in _run_module_as_main synapse_1 | return _run_code(code, main_globals, None, synapse_1 | File "/usr/local/lib/python3.8/runpy.py", line 85, in _run_code synapse_1 | exec(code, run_global...
TypeError
def __init__(self, database: Database, db_conn, hs): super(MonthlyActiveUsersStore, self).__init__(database, db_conn, hs) # Do not add more reserved users than the total allowable number # cur = LoggingTransaction( self.db.new_transaction( db_conn, "initialise_mau_threepids", []...
def __init__(self, database: Database, db_conn, hs): super(MonthlyActiveUsersStore, self).__init__(database, db_conn, hs) self._clock = hs.get_clock() self.hs = hs # Do not add more reserved users than the total allowable number self.db.new_transaction( db_conn, "initialise_mau_three...
https://github.com/matrix-org/synapse/issues/4639
Feb 13 17:56:49 ip-10-1-2-232 matrix_synapse[3223]: 2019-02-13 17:56:49,005 - synapse.http.server - 112 - ERROR - PUT-362- Failed handle request via <function _async_render at 0x7ff0363d32a8>: <XForwardedForRequest at 0x7ff02cca4b48 method=u'PUT' uri=u'/_matrix/client/r0/rooms/<<ROOM ID>>/send/m.room.message/163970?use...
exceptions.AttributeError
def reap_monthly_active_users(self): """Cleans out monthly active user table to ensure that no stale entries exist. Returns: Deferred[] """ def _reap_users(txn, reserved_users): """ Args: reserved_users (tuple): reserved users to preserve """ th...
def reap_monthly_active_users(self): """Cleans out monthly active user table to ensure that no stale entries exist. Returns: Deferred[] """ def _reap_users(txn, reserved_users): """ Args: reserved_users (tuple): reserved users to preserve """ th...
https://github.com/matrix-org/synapse/issues/4639
Feb 13 17:56:49 ip-10-1-2-232 matrix_synapse[3223]: 2019-02-13 17:56:49,005 - synapse.http.server - 112 - ERROR - PUT-362- Failed handle request via <function _async_render at 0x7ff0363d32a8>: <XForwardedForRequest at 0x7ff02cca4b48 method=u'PUT' uri=u'/_matrix/client/r0/rooms/<<ROOM ID>>/send/m.room.message/163970?use...
exceptions.AttributeError
def _reap_users(txn, reserved_users): """ Args: reserved_users (tuple): reserved users to preserve """ thirty_days_ago = int(self._clock.time_msec()) - (1000 * 60 * 60 * 24 * 30) query_args = [thirty_days_ago] base_sql = "DELETE FROM monthly_active_users WHERE timestamp < ?" # Need...
def _reap_users(txn, reserved_users): """ Args: reserved_users (tuple): reserved users to preserve """ thirty_days_ago = int(self._clock.time_msec()) - (1000 * 60 * 60 * 24 * 30) query_args = [thirty_days_ago] base_sql = "DELETE FROM monthly_active_users WHERE timestamp < ?" # Need...
https://github.com/matrix-org/synapse/issues/4639
Feb 13 17:56:49 ip-10-1-2-232 matrix_synapse[3223]: 2019-02-13 17:56:49,005 - synapse.http.server - 112 - ERROR - PUT-362- Failed handle request via <function _async_render at 0x7ff0363d32a8>: <XForwardedForRequest at 0x7ff02cca4b48 method=u'PUT' uri=u'/_matrix/client/r0/rooms/<<ROOM ID>>/send/m.room.message/163970?use...
exceptions.AttributeError
def upsert_monthly_active_user(self, user_id): """Updates or inserts the user into the monthly active user table, which is used to track the current MAU usage of the server Args: user_id (str): user to add/update """ # Support user never to be included in MAU stats. Note I can't easily call...
def upsert_monthly_active_user(self, user_id): """Updates or inserts the user into the monthly active user table, which is used to track the current MAU usage of the server Args: user_id (str): user to add/update """ # Support user never to be included in MAU stats. Note I can't easily call...
https://github.com/matrix-org/synapse/issues/4639
Feb 13 17:56:49 ip-10-1-2-232 matrix_synapse[3223]: 2019-02-13 17:56:49,005 - synapse.http.server - 112 - ERROR - PUT-362- Failed handle request via <function _async_render at 0x7ff0363d32a8>: <XForwardedForRequest at 0x7ff02cca4b48 method=u'PUT' uri=u'/_matrix/client/r0/rooms/<<ROOM ID>>/send/m.room.message/163970?use...
exceptions.AttributeError
def upsert_monthly_active_user_txn(self, txn, user_id): """Updates or inserts monthly active user member We consciously do not call is_support_txn from this method because it is not possible to cache the response. is_support_txn will be false in almost all cases, so it seems reasonable to call it only ...
def upsert_monthly_active_user_txn(self, txn, user_id): """Updates or inserts monthly active user member Note that, after calling this method, it will generally be necessary to invalidate the caches on user_last_seen_monthly_active and get_monthly_active_count. We can't do that here, because we are run...
https://github.com/matrix-org/synapse/issues/4639
Feb 13 17:56:49 ip-10-1-2-232 matrix_synapse[3223]: 2019-02-13 17:56:49,005 - synapse.http.server - 112 - ERROR - PUT-362- Failed handle request via <function _async_render at 0x7ff0363d32a8>: <XForwardedForRequest at 0x7ff02cca4b48 method=u'PUT' uri=u'/_matrix/client/r0/rooms/<<ROOM ID>>/send/m.room.message/163970?use...
exceptions.AttributeError
def read_config(self, config, config_dir_path, **kwargs): acme_config = config.get("acme", None) if acme_config is None: acme_config = {} self.acme_enabled = acme_config.get("enabled", False) # hyperlink complains on py2 if this is not a Unicode self.acme_url = six.text_type( acme_...
def read_config(self, config, config_dir_path, **kwargs): acme_config = config.get("acme", None) if acme_config is None: acme_config = {} self.acme_enabled = acme_config.get("enabled", False) # hyperlink complains on py2 if this is not a Unicode self.acme_url = six.text_type( acme_...
https://github.com/matrix-org/synapse/issues/5939
Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/synapse/http/federation/well_known_resolver.py", line 114, in _do_get_well_known self._well_known_agent.request(b"GET", uri) File "/usr/local/lib/python3.7/site-packages/twisted/web/client.py", line 2126, in request deferred = self._agent.r...
TypeError
def get_options(self, host: bytes): # IPolicyForHTTPS.get_options takes bytes, but we want to compare # against the str whitelist. The hostnames in the whitelist are already # IDNA-encoded like the hosts will be here. ascii_host = host.decode("ascii") # Check if certificate verification has been en...
def get_options(self, host): # Check if certificate verification has been enabled should_verify = self._config.federation_verify_certificates # Check if we've disabled certificate verification for this host if should_verify: for regex in self._config.federation_certificate_verification_whitelis...
https://github.com/matrix-org/synapse/issues/5939
Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/synapse/http/federation/well_known_resolver.py", line 114, in _do_get_well_known self._well_known_agent.request(b"GET", uri) File "/usr/local/lib/python3.7/site-packages/twisted/web/client.py", line 2126, in request deferred = self._agent.r...
TypeError
def __init__(self, hostname: bytes, ctx, verify_certs: bool): self._ctx = ctx self._verifier = ConnectionVerifier(hostname, verify_certs)
def __init__(self, hostname, ctx, verify_certs): self._ctx = ctx self._verifier = ConnectionVerifier(hostname, verify_certs)
https://github.com/matrix-org/synapse/issues/5939
Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/synapse/http/federation/well_known_resolver.py", line 114, in _do_get_well_known self._well_known_agent.request(b"GET", uri) File "/usr/local/lib/python3.7/site-packages/twisted/web/client.py", line 2126, in request deferred = self._agent.r...
TypeError
def __init__(self, hostname: bytes, verify_certs): self._verify_certs = verify_certs _decoded = hostname.decode("ascii") if isIPAddress(_decoded) or isIPv6Address(_decoded): self._is_ip_address = True else: self._is_ip_address = False self._hostnameBytes = hostname self._hostna...
def __init__(self, hostname, verify_certs): self._verify_certs = verify_certs if isIPAddress(hostname) or isIPv6Address(hostname): self._hostnameBytes = hostname.encode("ascii") self._is_ip_address = True else: # twisted's ClientTLSOptions falls back to the stdlib impl here if ...
https://github.com/matrix-org/synapse/issues/5939
Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/synapse/http/federation/well_known_resolver.py", line 114, in _do_get_well_known self._well_known_agent.request(b"GET", uri) File "/usr/local/lib/python3.7/site-packages/twisted/web/client.py", line 2126, in request deferred = self._agent.r...
TypeError
def __init__(self, reactor, tls_client_options_factory, srv_resolver, parsed_uri): self._reactor = reactor self._parsed_uri = parsed_uri # set up the TLS connection params # # XXX disabling TLS is really only supported here for the benefit of the # unit tests. We should make the UTs cope with ...
def __init__(self, reactor, tls_client_options_factory, srv_resolver, parsed_uri): self._reactor = reactor self._parsed_uri = parsed_uri # set up the TLS connection params # # XXX disabling TLS is really only supported here for the benefit of the # unit tests. We should make the UTs cope with ...
https://github.com/matrix-org/synapse/issues/5939
Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/synapse/http/federation/well_known_resolver.py", line 114, in _do_get_well_known self._well_known_agent.request(b"GET", uri) File "/usr/local/lib/python3.7/site-packages/twisted/web/client.py", line 2126, in request deferred = self._agent.r...
TypeError
def compute_state_delta( self, room_id, batch, sync_config, since_token, now_token, full_state ): """Works out the difference in state between the start of the timeline and the previous sync. Args: room_id(str): batch(synapse.handlers.sync.TimelineBatch): The timeline batch for ...
def compute_state_delta( self, room_id, batch, sync_config, since_token, now_token, full_state ): """Works out the difference in state between the start of the timeline and the previous sync. Args: room_id(str): batch(synapse.handlers.sync.TimelineBatch): The timeline batch for ...
https://github.com/matrix-org/synapse/issues/5407
2019-06-09 19:03:46,101 - synapse.handlers.sync - 909 - INFO - GET-835 - Calculating sync response for @uelen:riot.firechicken.net between StreamToken(room_key='s707461', presence_key='26561430', typing_key='2874', receipt_key='634533', account_data_key='24909', push_rules_key='56', to_device_key='95', device_list_key=...
IndexError
def _generate_room_entry( self, sync_result_builder, ignored_users, room_builder, ephemeral, tags, account_data, always_include=False, ): """Populates the `joined` and `archived` section of `sync_result_builder` based on the `room_builder`. Args: sync_result_builder(...
def _generate_room_entry( self, sync_result_builder, ignored_users, room_builder, ephemeral, tags, account_data, always_include=False, ): """Populates the `joined` and `archived` section of `sync_result_builder` based on the `room_builder`. Args: sync_result_builder(...
https://github.com/matrix-org/synapse/issues/5407
2019-06-09 19:03:46,101 - synapse.handlers.sync - 909 - INFO - GET-835 - Calculating sync response for @uelen:riot.firechicken.net between StreamToken(room_key='s707461', presence_key='26561430', typing_key='2874', receipt_key='634533', account_data_key='24909', push_rules_key='56', to_device_key='95', device_list_key=...
IndexError
def compute_state_delta( self, room_id, batch, sync_config, since_token, now_token, full_state ): """Works out the difference in state between the start of the timeline and the previous sync. Args: room_id(str): batch(synapse.handlers.sync.TimelineBatch): The timeline batch for ...
def compute_state_delta( self, room_id, batch, sync_config, since_token, now_token, full_state ): """Works out the difference in state between the start of the timeline and the previous sync. Args: room_id(str): batch(synapse.handlers.sync.TimelineBatch): The timeline batch for ...
https://github.com/matrix-org/synapse/issues/5407
2019-06-09 19:03:46,101 - synapse.handlers.sync - 909 - INFO - GET-835 - Calculating sync response for @uelen:riot.firechicken.net between StreamToken(room_key='s707461', presence_key='26561430', typing_key='2874', receipt_key='634533', account_data_key='24909', push_rules_key='56', to_device_key='95', device_list_key=...
IndexError
def _generate_room_entry( self, sync_result_builder, ignored_users, room_builder, ephemeral, tags, account_data, always_include=False, ): """Populates the `joined` and `archived` section of `sync_result_builder` based on the `room_builder`. Args: sync_result_builder(...
def _generate_room_entry( self, sync_result_builder, ignored_users, room_builder, ephemeral, tags, account_data, always_include=False, ): """Populates the `joined` and `archived` section of `sync_result_builder` based on the `room_builder`. Args: sync_result_builder(...
https://github.com/matrix-org/synapse/issues/5407
2019-06-09 19:03:46,101 - synapse.handlers.sync - 909 - INFO - GET-835 - Calculating sync response for @uelen:riot.firechicken.net between StreamToken(room_key='s707461', presence_key='26561430', typing_key='2874', receipt_key='634533', account_data_key='24909', push_rules_key='56', to_device_key='95', device_list_key=...
IndexError
def _populate_stats_process_rooms(self, progress, batch_size): if not self.stats_enabled: yield self._end_background_update("populate_stats_process_rooms") defer.returnValue(1) # If we don't have progress filed, delete everything. if not progress: yield self.delete_all_stats() ...
def _populate_stats_process_rooms(self, progress, batch_size): if not self.stats_enabled: yield self._end_background_update("populate_stats_process_rooms") defer.returnValue(1) # If we don't have progress filed, delete everything. if not progress: yield self.delete_all_stats() ...
https://github.com/matrix-org/synapse/issues/5238
2019-05-22 23:12:51,628 - twisted - 242 - ERROR - background_updates-0 - --- Logging error --- 2019-05-22 23:12:51,629 - twisted - 242 - ERROR - background_updates-0 - Traceback (most recent call last): 2019-05-22 23:12:51,629 - twisted - 242 - ERROR - background_updates-0 - File "/home/matrix/.synapse/local/lib/pyth...
TypeError
def _check_for_soft_fail(self, event, state, backfilled): """Checks if we should soft fail the event, if so marks the event as such. Args: event (FrozenEvent) state (dict|None): The state at the event if we don't have all the event's prev events backfilled (bool): Whethe...
def _check_for_soft_fail(self, event, state, backfilled): """Checks if we should soft fail the event, if so marks the event as such. Args: event (FrozenEvent) state (dict|None): The state at the event if we don't have all the event's prev events backfilled (bool): Whethe...
https://github.com/matrix-org/synapse/issues/5090
2019-04-22 01:18:17,013 - synapse.http.server - 112 - ERROR - POST-16014877 - Failed handle request via 'ReplicationFederationSendEventsRestServlet': <SynapseRequest at 0x7fc87ed2abe0 method='POST' uri='/_synapse/replication/fed_send_events/TloUSGYPDO' clientproto='HTTP/1.1' site=9092> Capture point (most recent call l...
twisted.internet.defer.FirstError
def _get_events_which_are_prevs(self, event_ids): """Filter the supplied list of event_ids to get those which are prev_events of existing (non-outlier/rejected) events. Args: event_ids (Iterable[str]): event ids to filter Returns: Deferred[List[str]]: filtered event ids """ res...
def _get_events_which_are_prevs(self, event_ids): """Filter the supplied list of event_ids to get those which are prev_events of existing (non-outlier/rejected) events. Args: event_ids (Iterable[str]): event ids to filter Returns: Deferred[List[str]]: filtered event ids """ res...
https://github.com/matrix-org/synapse/issues/5090
2019-04-22 01:18:17,013 - synapse.http.server - 112 - ERROR - POST-16014877 - Failed handle request via 'ReplicationFederationSendEventsRestServlet': <SynapseRequest at 0x7fc87ed2abe0 method='POST' uri='/_synapse/replication/fed_send_events/TloUSGYPDO' clientproto='HTTP/1.1' site=9092> Capture point (most recent call l...
twisted.internet.defer.FirstError
def _get_events(txn, batch): sql = """ SELECT prev_event_id, internal_metadata FROM event_edges INNER JOIN events USING (event_id) LEFT JOIN rejections USING (event_id) LEFT JOIN event_json USING (event_id) WHERE pre...
def _get_events(txn, batch): sql = """ SELECT prev_event_id FROM event_edges INNER JOIN events USING (event_id) LEFT JOIN rejections USING (event_id) WHERE prev_event_id IN (%s) AND NOT events.outlier ...
https://github.com/matrix-org/synapse/issues/5090
2019-04-22 01:18:17,013 - synapse.http.server - 112 - ERROR - POST-16014877 - Failed handle request via 'ReplicationFederationSendEventsRestServlet': <SynapseRequest at 0x7fc87ed2abe0 method='POST' uri='/_synapse/replication/fed_send_events/TloUSGYPDO' clientproto='HTTP/1.1' site=9092> Capture point (most recent call l...
twisted.internet.defer.FirstError
def _handle_state_delta(self, deltas): """Process current state deltas to find new joins that need to be handled. """ for delta in deltas: typ = delta["type"] state_key = delta["state_key"] room_id = delta["room_id"] event_id = delta["event_id"] prev_event_id = de...
def _handle_state_delta(self, deltas): """Process current state deltas to find new joins that need to be handled. """ for delta in deltas: typ = delta["type"] state_key = delta["state_key"] room_id = delta["room_id"] event_id = delta["event_id"] prev_event_id = de...
https://github.com/matrix-org/synapse/issues/5102
2019-04-26 06:18:26,267 - synapse.metrics.background_process_metrics - 203 - ERROR - presence.notify_new_event-13001- Background process 'presence.notify_new_event' threw an exception Capture point (most recent call last): File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "...
synapse.api.errors.NotFoundError
def get_current_state_deltas(self, prev_stream_id): """Fetch a list of room state changes since the given stream id Each entry in the result contains the following fields: - stream_id (int) - room_id (str) - type (str): event type - state_key (str): - event_id (str|None)...
def get_current_state_deltas(self, prev_stream_id): prev_stream_id = int(prev_stream_id) if not self._curr_state_delta_stream_cache.has_any_entity_changed(prev_stream_id): return [] def get_current_state_deltas_txn(txn): # First we calculate the max stream id that will give us less than ...
https://github.com/matrix-org/synapse/issues/5102
2019-04-26 06:18:26,267 - synapse.metrics.background_process_metrics - 203 - ERROR - presence.notify_new_event-13001- Background process 'presence.notify_new_event' threw an exception Capture point (most recent call last): File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "...
synapse.api.errors.NotFoundError
def subscribe_to_stream(self, stream_name, token): """Subscribe the remote to a stream. This invloves checking if they've missed anything and sending those updates down if they have. During that time new updates for the stream are queued and sent once we've sent down any missed updates. """ sel...
def subscribe_to_stream(self, stream_name, token): """Subscribe the remote to a streams. This invloves checking if they've missed anything and sending those updates down if they have. During that time new updates for the stream are queued and sent once we've sent down any missed updates. """ se...
https://github.com/matrix-org/synapse/issues/4705
Traceback (most recent call last): File "/home/matrix/synapse/synapse/replication/tcp/protocol.py", line 468, in subscribe_to_stream if token > current_token: TypeError: '>' not supported between instances of 'NoneType' and 'int'
TypeError
def read_config(self, config): consent_config = config.get("user_consent") if consent_config is None: return self.user_consent_version = str(consent_config["version"]) self.user_consent_template_dir = self.abspath(consent_config["template_dir"]) if not path.isdir(self.user_consent_template_d...
def read_config(self, config): consent_config = config.get("user_consent") if consent_config is None: return self.user_consent_version = str(consent_config["version"]) self.user_consent_template_dir = consent_config["template_dir"] self.user_consent_server_notice_content = consent_config.get...
https://github.com/matrix-org/synapse/issues/4500
2019-01-28 21:17:00,100 - twisted - 242 - ERROR - - Traceback (most recent call last): 2019-01-28 21:17:00,101 - twisted - 242 - ERROR - - File "/home/matrix/.synapse/lib/python2.7/site-packages/synapse/app/homeserver.py", line 394, in start 2019-01-28 21:17:00,101 - twisted - 242 - ERROR - - hs.start_listenin...
ConfigError
def __init__(self, hs): """ Args: hs (synapse.server.HomeServer): homeserver """ Resource.__init__(self) self.hs = hs self.store = hs.get_datastore() self.registration_handler = hs.get_handlers().registration_handler # this is required by the request_handler wrapper self.cl...
def __init__(self, hs): """ Args: hs (synapse.server.HomeServer): homeserver """ Resource.__init__(self) self.hs = hs self.store = hs.get_datastore() self.registration_handler = hs.get_handlers().registration_handler # this is required by the request_handler wrapper self.cl...
https://github.com/matrix-org/synapse/issues/4500
2019-01-28 21:17:00,100 - twisted - 242 - ERROR - - Traceback (most recent call last): 2019-01-28 21:17:00,101 - twisted - 242 - ERROR - - File "/home/matrix/.synapse/lib/python2.7/site-packages/synapse/app/homeserver.py", line 394, in start 2019-01-28 21:17:00,101 - twisted - 242 - ERROR - - hs.start_listenin...
ConfigError
def _new_transaction( self, conn, desc, after_callbacks, exception_callbacks, func, *args, **kwargs ): start = time.time() txn_id = self._TXN_ID # We don't really need these to be unique, so lets stop it from # growing really large. self._TXN_ID = (self._TXN_ID + 1) % (MAX_TXN_ID) name = "...
def _new_transaction( self, conn, desc, after_callbacks, exception_callbacks, func, *args, **kwargs ): start = time.time() txn_id = self._TXN_ID # We don't really need these to be unique, so lets stop it from # growing really large. self._TXN_ID = (self._TXN_ID + 1) % (MAX_TXN_ID) name = "...
https://github.com/matrix-org/synapse/issues/4252
2018-10-25 15:58:33,973 - twisted - 243 - ERROR - POST-299240- Traceback (most recent call last): 2018-10-25 15:58:33,973 - twisted - 243 - ERROR - POST-299240- File "/usr/lib/python2.7/logging/handlers.py", line 76, in emit 2018-10-25 15:58:33,974 - twisted - 243 - ERROR - POST-299240- if self.shouldRollover(rec...
UnicodeDecodeError
def resolve_service(service_name, dns_client=client, cache=SERVER_CACHE, clock=time): cache_entry = cache.get(service_name, None) if cache_entry: if all(s.expires > int(clock.time()) for s in cache_entry): servers = list(cache_entry) defer.returnValue(servers) servers = [] ...
def resolve_service(service_name, dns_client=client, cache=SERVER_CACHE, clock=time): cache_entry = cache.get(service_name, None) if cache_entry: if all(s.expires > int(clock.time()) for s in cache_entry): servers = list(cache_entry) defer.returnValue(servers) servers = [] ...
https://github.com/matrix-org/synapse/issues/2850
2018-02-05 19:14:51,585 - synapse.access.http.8008 - 59 - INFO - GET-131021- - - 8008 - Received request: GET /_matrix/client/r0/directory/room/%23test%3Amatrix.org?access_token=<redacted> 2018-02-05 19:14:51,589 - synapse.http.outbound - 154 - INFO - GET-131021- {GET-O-1317} [matrix.org] Sending request: GET matrix://...
NoRouteError
def update_manifest(ref=None): """ Given a git reference in the Noto repo, such as a git commit hash or tag, extract information about the fonts available for use and save that information to the manifest file. The Noto repo currently contains both an older style and the newer "Phase 3" fonts. ...
def update_manifest(ref=None): """ Given a git reference in the Noto repo, such as a git commit hash or tag, extract information about the fonts available for use and save that information to the manifest file. The Noto repo currently contains both an older style and the newer "Phase 3" fonts. ...
https://github.com/learningequality/kolibri/issues/6796
Traceback (most recent call last): File "build_tools/i18n/fonts.py", line 641, in <module> main() File "build_tools/i18n/fonts.py", line 627, in main command_update_font_manifest(args.ref) File "build_tools/i18n/fonts.py", line 560, in command_update_font_manifest noto_source.update_manifest(ref) File "/Users/jon/Githu...
TypeError
def add_arguments(self, parser): parser.add_argument( "--interval", action="store", dest="interval", help="Number of minutes to wait after a successful ping before the next ping.", ) parser.add_argument( "--checkrate", action="store", dest="checkrate",...
def add_arguments(self, parser): parser.add_argument( "--interval", action="store", dest="interval", help="Number of minutes to wait after a successful ping before the next ping.", ) parser.add_argument( "--checkrate", action="store", dest="checkrate",...
https://github.com/learningequality/kolibri/issues/4414
INFO:kolibri.core.analytics.management.commands.ping:Ping succeeded! (response: {'id': 87135}) Exception in thread Thread-1: Traceback (most recent call last): File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/Users...
TypeError
def handle(self, *args, **options): interval = float(options.get("interval") or DEFAULT_PING_INTERVAL) checkrate = float(options.get("checkrate") or DEFAULT_PING_CHECKRATE) server = options.get("server") or DEFAULT_SERVER_URL once = options.get("once") or False self.started = datetime.now() wh...
def handle(self, *args, **options): interval = float(options.get("interval") or DEFAULT_PING_INTERVAL) checkrate = float(options.get("checkrate") or DEFAULT_PING_CHECKRATE) server = options.get("server") or DEFAULT_SERVER_URL self.started = datetime.now() while True: try: logge...
https://github.com/learningequality/kolibri/issues/4414
INFO:kolibri.core.analytics.management.commands.ping:Ping succeeded! (response: {'id': 87135}) Exception in thread Thread-1: Traceback (most recent call last): File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/Users...
TypeError
def perform_ping(self, server): url = urljoin(server, "/api/v1/pingback") instance, _ = InstanceIDModel.get_or_create_current_instance() devicesettings = DeviceSettings.objects.first() language = devicesettings.language_id if devicesettings else "" try: timezone = get_current_timezone().z...
def perform_ping(self, server): url = urljoin(server, "/api/v1/pingback") instance, _ = InstanceIDModel.get_or_create_current_instance() devicesettings = DeviceSettings.objects.first() language = devicesettings.language_id if devicesettings else "" try: timezone = get_current_timezone().z...
https://github.com/learningequality/kolibri/issues/4414
INFO:kolibri.core.analytics.management.commands.ping:Ping succeeded! (response: {'id': 87135}) Exception in thread Thread-1: Traceback (most recent call last): File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/Users...
TypeError
def perform_statistics(self, server, pingback_id): url = urljoin(server, "/api/v1/statistics") channels = [extract_channel_statistics(c) for c in ChannelMetadata.objects.all()] facilities = [extract_facility_statistics(f) for f in Facility.objects.all()] data = { "pi": pingback_id, "c"...
def perform_statistics(self, server, pingback_id): url = urljoin(server, "/api/v1/statistics") channels = [extract_channel_statistics(c) for c in ChannelMetadata.objects.all()] facilities = [extract_facility_statistics(f) for f in Facility.objects.all()] data = { "pi": pingback_id, "c"...
https://github.com/learningequality/kolibri/issues/4414
INFO:kolibri.core.analytics.management.commands.ping:Ping succeeded! (response: {'id': 87135}) Exception in thread Thread-1: Traceback (most recent call last): File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/Users...
TypeError
def extract_facility_statistics(facility): dataset_id = facility.dataset_id settings = { name: getattr(facility.dataset, name) for name in facility_settings if hasattr(facility.dataset, name) } learners = FacilityUser.objects.filter(dataset_id=dataset_id).exclude( roles...
def extract_facility_statistics(facility): dataset_id = facility.dataset_id settings = { name: getattr(facility.dataset, name) for name in facility_settings if hasattr(facility.dataset, name) } learners = FacilityUser.objects.filter(dataset_id=dataset_id).exclude( roles...
https://github.com/learningequality/kolibri/issues/4414
INFO:kolibri.core.analytics.management.commands.ping:Ping succeeded! (response: {'id': 87135}) Exception in thread Thread-1: Traceback (most recent call last): File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/Users...
TypeError
def get_files_to_transfer(channel_id, node_ids, exclude_node_ids, available): files_to_transfer = LocalFile.objects.filter( files__contentnode__channel_id=channel_id, available=available ) if node_ids: leaf_node_ids = _get_leaf_node_ids(node_ids) files_to_transfer = files_to_transfe...
def get_files_to_transfer(channel_id, node_ids, exclude_node_ids, available): files_to_transfer = LocalFile.objects.filter( files__contentnode__channel_id=channel_id, available=available ) if node_ids: leaf_node_ids = _get_leaves_ids(node_ids) files_to_transfer = files_to_transfer.f...
https://github.com/learningequality/kolibri/issues/3110
�[33mWARNING Job d416c174faeb4648b22bd1420a75f2a0 raised an exception: Traceback (most recent call last): File "c:\python27\lib\site-packages\kolibri\dist\iceqube\worker\backends\inmem.py", line 75, in handle_finished_future result = future.result() File "c:\python27\lib\site-packages\kolibri\dist\concurrent\futures\_...
OperationalError
def _job_to_response(job): if not job: return { "type": None, "started_by": None, "status": State.SCHEDULED, "percentage": 0, "progress": [], "id": None, "cancellable": False, } else: return { ...
def _job_to_response(job): if not job: return { "type": None, "started_by": None, "status": State.SCHEDULED, "percentage": 0, "progress": [], "id": None, "cancellable": False, } else: return { ...
https://github.com/learningequality/kolibri/issues/2729
ERROR Internal Server Error: /api/tasks/ Traceback (most recent call last): File "/Users/d/PythonEnvs/le2/lib/python2.7/site-packages/django/core/handlers/base.py", line 149, in get_response response = self.process_exception_by_middleware(e, request) File "/Users/d/PythonEnvs/le2/lib/python2.7/site-packages/django/c...
AttributeError
def handle(self, *args, **options): engine = create_engine(get_default_db_string(), convert_unicode=True) metadata = MetaData() app_config = apps.get_app_config("content") # Exclude channelmetadatacache in case we are reflecting an older version of Kolibri table_names = [ model._meta.db_ta...
def handle(self, *args, **options): engine = create_engine(get_default_db_string(), convert_unicode=True) metadata = MetaData() app_config = apps.get_app_config("content") # Exclude channelmetadatacache in case we are reflecting an older version of Kolibri table_names = [ model._meta.db_ta...
https://github.com/learningequality/kolibri/issues/2381
didi@didi-VirtualBox:~/Desktop$ ./kolibri-0.6.dev020171007224512-git.pex manage importchannel -- network fb51dae6df7545af8455aa3a0c32048d INFO Version was 0.6.dev020171009005906-export, new version: 0.6.dev020171009010641-export INFO Running update routines for new version... 0 static files copied to '/home/di...
TypeError
def get_license(self, SourceRecord): license_id = SourceRecord.license_id if not license_id: return None if license_id not in self.licenses: LicenseRecord = self.source.get_class(License) license = self.source.session.query(LicenseRecord).get(license_id) self.licenses[license...
def get_license(self, SourceRecord): license_id = SourceRecord.license_id if license_id not in self.licenses: LicenseRecord = self.source.get_class(License) license = self.source.session.query(LicenseRecord).get(license_id) self.licenses[license_id] = license return self.licenses[lic...
https://github.com/learningequality/kolibri/issues/2381
didi@didi-VirtualBox:~/Desktop$ ./kolibri-0.6.dev020171007224512-git.pex manage importchannel -- network fb51dae6df7545af8455aa3a0c32048d INFO Version was 0.6.dev020171009005906-export, new version: 0.6.dev020171009010641-export INFO Running update routines for new version... 0 static files copied to '/home/di...
TypeError
def get_license_name(self, SourceRecord): license = self.get_license(SourceRecord) if not license: return None return license.license_name
def get_license_name(self, SourceRecord): license = self.get_license(SourceRecord) return license.license_name
https://github.com/learningequality/kolibri/issues/2381
didi@didi-VirtualBox:~/Desktop$ ./kolibri-0.6.dev020171007224512-git.pex manage importchannel -- network fb51dae6df7545af8455aa3a0c32048d INFO Version was 0.6.dev020171009005906-export, new version: 0.6.dev020171009010641-export INFO Running update routines for new version... 0 static files copied to '/home/di...
TypeError
def get_license_description(self, SourceRecord): license = self.get_license(SourceRecord) if not license: return None return license.license_description
def get_license_description(self, SourceRecord): license = self.get_license(SourceRecord) return license.license_description
https://github.com/learningequality/kolibri/issues/2381
didi@didi-VirtualBox:~/Desktop$ ./kolibri-0.6.dev020171007224512-git.pex manage importchannel -- network fb51dae6df7545af8455aa3a0c32048d INFO Version was 0.6.dev020171009005906-export, new version: 0.6.dev020171009010641-export INFO Running update routines for new version... 0 static files copied to '/home/di...
TypeError
def ready(self): global client client = SimpleClient(app="kolibri", storage_path=settings.QUEUE_JOB_STORAGE_PATH) client.clear(force=True)
def ready(self): from kolibri.tasks.api import client client.clear(force=True)
https://github.com/learningequality/kolibri/issues/1786
osboxes@osboxes:~$ cd Desktop/ osboxes@osboxes:~/Desktop$ ./kolibri-v0.5.0-beta1.pex start INFO Kolibri running for the first time. INFO We don't yet use pre-migrated database seeds, so you're going to have to wait a bit while we create a blank database... Operations to perform: Apply all migrations: sessions...
exceptions.TypeError
def error_received(self, exc): # pragma: no cover if self.recvfrom and not self.recvfrom.done(): self.recvfrom.set_exception(exc)
def error_received(self, exc): # pragma: no cover if self.recvfrom: self.recvfrom.set_exception(exc)
https://github.com/rthalley/dnspython/issues/572
this assertion passes: this assertion passes, but it's noisy: Exception in callback _SelectorTransport._call_connection_lost(None) handle: <Handle _SelectorTransport._call_connection_lost(None)> Traceback (most recent call last): File "C:\Miniconda3\envs\py37\lib\asyncio\events.py", line 88, in _run self._context.run(s...
asyncio.base_futures.InvalidStateError
def connection_lost(self, exc): if self.recvfrom and not self.recvfrom.done(): self.recvfrom.set_exception(exc)
def connection_lost(self, exc): if self.recvfrom: self.recvfrom.set_exception(exc)
https://github.com/rthalley/dnspython/issues/572
this assertion passes: this assertion passes, but it's noisy: Exception in callback _SelectorTransport._call_connection_lost(None) handle: <Handle _SelectorTransport._call_connection_lost(None)> Traceback (most recent call last): File "C:\Miniconda3\envs\py37\lib\asyncio\events.py", line 88, in _run self._context.run(s...
asyncio.base_futures.InvalidStateError
def _destination_and_source(af, where, port, source, source_port, default_to_inet=True): # Apply defaults and compute destination and source tuples # suitable for use in connect(), sendto(), or bind(). if af is None: try: af = dns.inet.af_for_address(where) except Exception: ...
def _destination_and_source(af, where, port, source, source_port, default_to_inet=True): # Apply defaults and compute destination and source tuples # suitable for use in connect(), sendto(), or bind(). if af is None: try: af = dns.inet.af_for_address(where) except Exception: ...
https://github.com/rthalley/dnspython/issues/283
% python3 Python 3.6.3 (default, Oct 7 2017, 10:06:24) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin Type "help", "copyright", "credits" or "license" for more information. import dns.resolver r=dns.resolver.Resolver() r.nameservers=['fe80::20c:29ff:fe66:3eac%en1'] r.lifetime=2 r.query('yahoo.com'...
dns.exception.Timeout
def xfr( where, zone, rdtype=dns.rdatatype.AXFR, rdclass=dns.rdataclass.IN, timeout=None, port=53, keyring=None, keyname=None, relativize=True, af=None, lifetime=None, source=None, source_port=0, serial=0, use_udp=False, keyalgorithm=dns.tsig.default_algor...
def xfr( where, zone, rdtype=dns.rdatatype.AXFR, rdclass=dns.rdataclass.IN, timeout=None, port=53, keyring=None, keyname=None, relativize=True, af=None, lifetime=None, source=None, source_port=0, serial=0, use_udp=False, keyalgorithm=dns.tsig.default_algor...
https://github.com/rthalley/dnspython/issues/390
list(dns.query.xfr('127.0.0.1', 'example', port=12345, timeout=10)) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/bwelling/Library/Python/3.6/lib/python/site-packages/dns/query.py", line 470, in xfr if mexpiration is None or mexpiration > expiration: TypeError: '>' not supported be...
TypeError
def __init__(self, rdclass, rdtype, strings): super(TXTBase, self).__init__(rdclass, rdtype) if isinstance(strings, binary_type) or isinstance(strings, string_types): strings = [strings] self.strings = [] for string in strings: if isinstance(string, string_types): string = st...
def __init__(self, rdclass, rdtype, strings): super(TXTBase, self).__init__(rdclass, rdtype) if isinstance(strings, str): strings = [strings] self.strings = strings[:]
https://github.com/rthalley/dnspython/issues/239
from dns.rdtypes.txtbase import TXTBase tb = TXTBase(rdtype='bar', rdclass='ham', strings='foo') tb.to_digestable() Traceback (most recent call last): ..../python3.5/site-packages/dns/rdtypes/txtbase.py", line 75, in to_wire file.write(s) TypeError: a bytes-like object is required, not 'str'
TypeError
def tcp( q, where, timeout=None, port=53, af=None, source=None, source_port=0, one_rr_per_rrset=False, ): """Return the response obtained after sending a query via TCP. *q*, a ``dns.message.message``, the query to send *where*, a ``text`` containing an IPv4 or IPv6 address,...
def tcp( q, where, timeout=None, port=53, af=None, source=None, source_port=0, one_rr_per_rrset=False, ): """Return the response obtained after sending a query via TCP. *q*, a ``dns.message.message``, the query to send *where*, a ``text`` containing an IPv4 or IPv6 address,...
https://github.com/rthalley/dnspython/issues/228
Traceback (most recent call last): File "/home/frost/.local/lib/python3.5/site-packages/dns/query.py", line 464, in tcp q.keyring, q.request_mac) File "/home/frost/.local/lib/python3.5/site-packages/dns/query.py", line 402, in receive_tcp one_rr_per_rrset=one_rr_per_rrset) File "/home/frost/.local/lib/python3.5/site-pa...
UnboundLocalError
def __init__(self, origin, rdclass=dns.rdataclass.IN, relativize=True): """Initialize a zone object. @param origin: The origin of the zone. @type origin: dns.name.Name object @param rdclass: The zone's rdata class; the default is class IN. @type rdclass: int""" if origin is not None: i...
def __init__(self, origin, rdclass=dns.rdataclass.IN, relativize=True): """Initialize a zone object. @param origin: The origin of the zone. @type origin: dns.name.Name object @param rdclass: The zone's rdata class; the default is class IN. @type rdclass: int""" if isinstance(origin, string_typ...
https://github.com/rthalley/dnspython/issues/153
ValueError Traceback (most recent call last) <ipython-input-7-58a197c0fdca> in <module>() 7 print zone_text 8 ----> 9 zone = dns.zone.from_text(zone_text) /Users/graham/venvs/dnspython-testin/lib/python2.7/site-packages/dns/zone.pyc in from_text(text, origin, rdclass, relativize, zone_fa...
ValueError
def match( handler: handlers.ResourceHandler, cause: causation.ResourceCause, ) -> bool: # Kwargs are lazily evaluated on the first _actual_ use, and shared for all filters since then. kwargs: MutableMapping[str, Any] = {} return ( _matches_resource(handler, cause.resource) and _matc...
def match( handler: handlers.ResourceHandler, cause: causation.ResourceCause, ) -> bool: # Kwargs are lazily evaluated on the first _actual_ use, and shared for all filters since then. kwargs: MutableMapping[str, Any] = {} return all( [ _matches_resource(handler, cause.resource),...
https://github.com/nolar/kopf/issues/648
2021-01-19 16:43:29,972] kopf.reactor.activit [INFO ] Initial authentication has been initiated. [2021-01-19 16:43:30,129] kopf.activities.auth [INFO ] Activity 'login_via_client' succeeded. [2021-01-19 16:43:30,129] kopf.reactor.activit [INFO ] Initial authentication has finished. [2021-01-19 16:43:30,359] ko...
KeyError
async def watch_objs( *, settings: configuration.OperatorSettings, resource: resources.Resource, namespace: Optional[str] = None, timeout: Optional[float] = None, since: Optional[str] = None, context: Optional[auth.APIContext] = None, # injected by the decorator freeze_waiter: asyncio_F...
async def watch_objs( *, settings: configuration.OperatorSettings, resource: resources.Resource, namespace: Optional[str] = None, timeout: Optional[float] = None, since: Optional[str] = None, context: Optional[auth.APIContext] = None, # injected by the decorator freeze_waiter: asyncio_F...
https://github.com/nolar/kopf/issues/368
[2020-05-25 10:44:44,924] kopf.reactor.running [ERROR ] Root task 'watcher of pods' is failed: Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/kopf/reactor/running.py", line 453, in _root_task_checker await coro File "/usr/local/lib/python3.7/dist-packages/kopf/reactor/queueing.py", line...
aiohttp.client_exceptions.ServerDisconnectedError
def _create_tag(self, tag_str: str): """Create a Tag object from a tag string.""" tag_hierarchy = tag_str.split(self.hierarchy_separator) tag_prefix = "" parent_tag = None tag = None for sub_tag in tag_hierarchy: # Get or create subtag. sub_tag_name = self._scrub_tag_name(sub_tag...
def _create_tag(self, tag_str): """Create a Tag object from a tag string.""" tag_hierarchy = tag_str.split(self.hierarchy_separator) tag_prefix = "" parent_tag = None for sub_tag in tag_hierarchy: # Get or create subtag. tag_name = tag_prefix + self._scrub_tag_name(sub_tag) t...
https://github.com/galaxyproject/galaxy/issues/11451
galaxy.web.framework.decorators ERROR 2021-02-23 12:24:13,429 [p:203,w:1,m:0] [uWSGIWorker1Core2] Uncaught exception in exposed API method: Traceback (most recent call last): File "lib/galaxy/web/framework/decorators.py", line 305, in decorator rval = func(self, trans, *args, **kwargs) File "lib/galaxy/webapps/galaxy/a...
TypeError