Jump to content

Exception with Latest version of Pretrodactyl

Pending 1.0.0

MyCodeflingAccount

Posted

Exception in thread Thread-9 (run_command):
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.11/threading.py", line 982, in run
    self._target(*self._args, **self._kwargs)
  File "/home/container/main.py", line 293, in run_command
    self.message_command(config_file, message)
  File "/home/container/main.py", line 102, in message_command
    server = self.api.client.servers.get_server_utilization(config["server_id"])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/container/.local/lib/python3.11/site-packages/pydactyl/api/client/servers/base.py", line 60, in get_server_utilization
    return base.parse_response(response, detail)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/container/.local/lib/python3.11/site-packages/pydactyl/api/base.py", line 24, in parse_response
    if response['object'] == 'list':
       ~~~~~~~~^^^^^^^^^^
TypeError: 'Response' object is not subscriptable

dustyhansen

Posted

I am getting a similar error on mine. I switched to Physgun and they use Wisp I believe, not Pterodactyl. So I am not sure if my issue is the same as above or not:

wipe dev
[2026-03-29 19:31:31] Wipe command sent to server: https://gamecp.physgun.com/server/REDACTED with config: dev.
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): gamecp.physgun.com:443
DEBUG:urllib3.connectionpool:https://gamecp.physgun.com:443 "POST /api/client/servers/REDACTED/power HTTP/1.1" 204 0
[2026-03-29 19:31:32] Server https://gamecp.physgun.com/server/299106f9 stopped. Waiting on the server to shutdown properly.
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): gamecp.physgun.com:443
DEBUG:urllib3.connectionpool:https://gamecp.physgun.com:443 "GET /api/client/servers/REDACTED/resources HTTP/1.1" 200 None
Exception in thread Thread-1 (run_command):
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/container/main.py", line 299, in run_command
    self.wipe_command(config_file)
  File "/home/container/main.py", line 137, in wipe_command
    server = self.api.client.servers.get_server_utilization(config["server_id"])
  File "/home/container/.local/lib/python3.10/site-packages/pydactyl/api/client/servers/base.py", line 60, in get_server_utilization
    return base.parse_response(response, detail)
  File "/home/container/.local/lib/python3.10/site-packages/pydactyl/api/base.py", line 24, in parse_response
    if response['object'] == 'list':
KeyError: 'object'

 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.3m
Total downloads
Customers
10.7k
Customers served
Files Sold
154.8k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.