Error code 405 when using '/server/directory/. ' #273
Locked
LordRalex
announced in
Legacy - Support
Replies: 1 comment 1 reply
-
puffrfish wrote at May 25 2016 13:11:03 UTC: The documentation for the Scales API is far from accurate or complete. I would recommend looking at the Scales source directly to determine its actual functionality. I can confirm that this issue exists in Scales and it is not just your code. You might want to try the curl version when troubleshooting to make sure it functions with a simple curl if your PHP code does not work right. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ReduxRedstone wrote at May 25 2016 13:11:03 UTC:
When using php to access the root directory using /server/directory/. (which is stated on http://scales.pufferpanel.com/docs/serverdirectorydirectory to list the base files) it throws the following error:
Response HTTP Status Code : 405 Response HTTP Body : {"code":"MethodNotAllowedError","message":"GET is not allowed"}
I am able to access other directories such as /server/directory/logs which outputs:
[SUPER LONG ARRAY OF FILES]
and a 200 response. The code I'm using is as follows:
so if the error is in my code please correct me. The error only happens when using /directory/. even though this is documented to work.
Beta Was this translation helpful? Give feedback.
All reactions