Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Known Agents in Pterodactyl #13

Open
OhDaveDev opened this issue Oct 2, 2024 · 1 comment
Open

Known Agents in Pterodactyl #13

OhDaveDev opened this issue Oct 2, 2024 · 1 comment

Comments

@OhDaveDev
Copy link

Hi there,
I'm running polymath on an internal network on my machine with the server pulling from it also being internal. However, when the plugin loads, it cannot pull from the resource server nor can it upload. I'll post both errors here

[2024-10-02 20:03:10,650] [INFO] Received Upload request from: 172.18.0.1
[2024-10-02 20:03:10,650] [ERROR] Error handling request
Traceback (most recent call last):
File "/home/container/.local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/aiohttp/web_app.py", line 559, in _handle
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/polymath/server.py", line 40, in upload
if not any( [re.compile(x,flags=re.IGNORECASE).fullmatch(User_Agent,flags=re.IGNORECASE) for x in self.config['security']['known_agents']['uploads']] ):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'uploads'
[2024-10-02 20:03:10,651] [INFO] 172.18.0.1 [02/Oct/2024:20:03:10 +0000] "POST /upload HTTP/1.1" 500 246 "-" "Apache-HttpClient/4.5.14 (Java/21.0.3)"
[2024-10-02 20:04:12,766] [INFO] 172.18.0.1 [02/Oct/2024:20:04:12 +0000] "POST /upload/upload HTTP/1.1" 404 174 "-" "Apache-HttpClient/4.5.14 (Java/21.0.3)"

[20:04:12 INFO]: Oraxen | Automatic upload of the resource pack is enabled, uploading...
[20:04:12 INFO]: Oraxen | The resource pack could not be uploaded due to a malformed response.
[20:04:12 INFO]: Oraxen | This is usually due to the resourcepack server being down.
[20:04:12 INFO]: Oraxen | Resourcepack not uploaded

@oOHiyoriOo
Copy link
Contributor

The error suggests there's something wrong with the structure of the python object.
I'll check later for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants