Untitled

mail@pastecode.io avatar
unknown
python
7 months ago
16 kB
3
Indexable
Never
2023-10-06 09:41:06,440 - WARNING - Shard ID None heartbeat blocked for more than 10 seconds.
Loop thread traceback (most recent call last):
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 995, in _bootstrap
    self._bootstrap_inner()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/discord/bot/bot.py", line 151, in run_bot
    bot.run(BOT_TOKEN)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/discord/client.py", line 860, in run
    asyncio.run(runner())
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/base_events.py", line 640, in run_until_complete
    self.run_forever()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/base_events.py", line 607, in run_forever
    self._run_once()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/base_events.py", line 1922, in _run_once
    handle._run()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/discord/client.py", line 441, in _run_event
    await coro(*args, **kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/discord/bot/bot.py", line 39, in on_message
    await exec_command(cmd, message, args)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/discord/bot/commands.py", line 15, in exec_command
    await deal(message, args)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/discord/bot/commands.py", line 64, in deal
    status, profile = customer_profile(pd_deal_id, None)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/pipedrive/customer_profile.py", line 72, in customer_profile
    activities_status, all_activities = fetch_activities(pd_deal_id)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/pipedrive/customer_profile.py", line 18, in fetch_activities
    activities_response = requests.get(PIPEDRIVE_ACTIVITIES_ENDPOINT)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 790, in urlopen
    response = self._make_request(
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 536, in _make_request
    response = conn.getresponse()
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/urllib3/connection.py", line 461, in getresponse
    httplib_response = super().getresponse()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/http/client.py", line 1378, in getresponse
    response.begin()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/http/client.py", line 318, in begin
    version, status, reason = self._read_status()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/http/client.py", line 279, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/socket.py", line 706, in readinto
    return self._sock.recv_into(b)
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/ssl.py", line 1278, in recv_into
    return self.read(nbytes, buffer)
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/ssl.py", line 1134, in read
    return self._sslobj.read(len, buffer)

2023-10-06 09:41:16,442 - WARNING - Shard ID None heartbeat blocked for more than 20 seconds.
Loop thread traceback (most recent call last):
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 995, in _bootstrap
    self._bootstrap_inner()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/discord/bot/bot.py", line 151, in run_bot
    bot.run(BOT_TOKEN)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/discord/client.py", line 860, in run
    asyncio.run(runner())
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/base_events.py", line 640, in run_until_complete
    self.run_forever()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/base_events.py", line 607, in run_forever
    self._run_once()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/base_events.py", line 1922, in _run_once
    handle._run()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/discord/client.py", line 441, in _run_event
    await coro(*args, **kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/discord/bot/bot.py", line 39, in on_message
    await exec_command(cmd, message, args)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/discord/bot/commands.py", line 15, in exec_command
    await deal(message, args)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/discord/bot/commands.py", line 64, in deal
    status, profile = customer_profile(pd_deal_id, None)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/pipedrive/customer_profile.py", line 72, in customer_profile
    activities_status, all_activities = fetch_activities(pd_deal_id)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/pipedrive/customer_profile.py", line 18, in fetch_activities
    activities_response = requests.get(PIPEDRIVE_ACTIVITIES_ENDPOINT)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 790, in urlopen
    response = self._make_request(
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 536, in _make_request
    response = conn.getresponse()
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/urllib3/connection.py", line 461, in getresponse
    httplib_response = super().getresponse()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/http/client.py", line 1378, in getresponse
    response.begin()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/http/client.py", line 318, in begin
    version, status, reason = self._read_status()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/http/client.py", line 279, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/socket.py", line 706, in readinto
    return self._sock.recv_into(b)
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/ssl.py", line 1278, in recv_into
    return self.read(nbytes, buffer)
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/ssl.py", line 1134, in read
    return self._sslobj.read(len, buffer)

2023-10-06 09:41:26,444 - WARNING - Shard ID None heartbeat blocked for more than 30 seconds.
Loop thread traceback (most recent call last):
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 995, in _bootstrap
    self._bootstrap_inner()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/discord/bot/bot.py", line 151, in run_bot
    bot.run(BOT_TOKEN)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/discord/client.py", line 860, in run
    asyncio.run(runner())
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/base_events.py", line 640, in run_until_complete
    self.run_forever()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/base_events.py", line 607, in run_forever
    self._run_once()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/base_events.py", line 1922, in _run_once
    handle._run()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/discord/client.py", line 441, in _run_event
    await coro(*args, **kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/discord/bot/bot.py", line 39, in on_message
    await exec_command(cmd, message, args)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/discord/bot/commands.py", line 15, in exec_command
    await deal(message, args)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/discord/bot/commands.py", line 64, in deal
    status, profile = customer_profile(pd_deal_id, None)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/pipedrive/customer_profile.py", line 72, in customer_profile
    activities_status, all_activities = fetch_activities(pd_deal_id)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/crm/pipedrive/customer_profile.py", line 18, in fetch_activities
    activities_response = requests.get(PIPEDRIVE_ACTIVITIES_ENDPOINT)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 790, in urlopen
    response = self._make_request(
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 536, in _make_request
    response = conn.getresponse()
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/urllib3/connection.py", line 461, in getresponse
    httplib_response = super().getresponse()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/http/client.py", line 1378, in getresponse
    response.begin()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/http/client.py", line 318, in begin
    version, status, reason = self._read_status()
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/http/client.py", line 279, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/socket.py", line 706, in readinto
    return self._sock.recv_into(b)
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/ssl.py", line 1278, in recv_into
    return self.read(nbytes, buffer)
  File "/home/ubuntuserver/.pyenv/versions/3.11.4/lib/python3.11/ssl.py", line 1134, in read
    return self._sslobj.read(len, buffer)

2023-10-06 09:41:31,100 - ERROR - Attempting a reconnect in 0.35s
Traceback (most recent call last):
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/discord/client.py", line 659, in connect
    await self.ws.poll_event()
  File "/home/ubuntuserver/projects/AI-GPT-CRM2_staging/.venv/lib/python3.11/site-packages/discord/gateway.py", line 646, in poll_event
    raise ConnectionClosed(self.socket, shard_id=self.shard_id, code=code) from None
discord.errors.ConnectionClosed: Shard ID None WebSocket closed with 1000
2023-10-06 09:41:32,100 - INFO - Shard ID None has successfully RESUMED session 35f66af865826732da0368d23a781954.