You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the following error when i run my code AttributeError: 'NoneType' object has no attribute 'get'
from requests import Session
from signalr import Connection
def main():
with Session() as session:
connection = Connection("http://localhost:8089/signalr", session=None)
presenceservice = connection.register_hub('MyHub')
key = input("Press E\n")
while connection:
if key == 'e':
presenceservice.server.invoke('Heartbeat')
presenceservice.client.on('Heartbeat', print("Recieved Heartbeat \n"))
if __name__ == "__main__":
main()
Log
Traceback (most recent call last):
File "C:/Users/user/AppData/Local/Programs/Python/Python37/signalrr.py", line 19, in <module>
main()
File "C:/Users/user/AppData/Local/Programs/Python/Python37/signalrr.py", line 10, in main
connection.start()
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\signalr\_connection.py", line 47, in start
negotiate_data = self.__transport.negotiate()
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\signalr\transports\_auto_transport.py", line 16, in negotiate
negotiate_data = Transport.negotiate(self)
File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\site-packages\signalr\transports\_transport.py", line 26, in negotiate
negotiate = self._session.get(url)
AttributeError: 'NoneType' object has no attribute 'get'
The text was updated successfully, but these errors were encountered:
I am getting the following error when i run my code AttributeError: 'NoneType' object has no attribute 'get'
Log
The text was updated successfully, but these errors were encountered: