-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
Results of all command doesnt Shows up #103
Comments
Please provide relevant information such as:
|
apache only shows this error :
/*
// People to contact // Frontpage configuration // Title of the page // Things to remove from the output (PHP compatible regex) // If telnet is used in combination with extreme_netiron, uncomment the following filter // Google reCaptcha integration // Routers definitions // Authentication based on SSH or Telnet with password // If running on *BSD, disable '-A' which is non-existent |
There is nothing wrong given what you just provided. Are you able to see the command sent to your router in the logs of it? |
I've had a couple of similar issues. One I'm still tracking down, but another I found to be a configuration problem. In certain cases the response from execute.php isn't going to be JSON. You can see what it's returning by right-click and hitting "Inspect Element" (firefox) or right-click and hitting "Inspect" in chrome. From there it varies how to find the information, but the basics are to click on the "Network" tab and then click the "execute.php" request, then look at the data for a "Response" object. Here is the config error that I had:
Hope this helps you narrow it down. |
If you have auth debug enabled, you'll see the error about NET_SSH2_LOG_COMPLEX being undefined because it's used here: https://github.com/respawner/looking-glass/blob/master/auth/ssh.php#L43 If you add I think the issue with output is probably the same as #138. I'm just running the docker container with a simple configuration, and I can see the responses I get to execute.php look like:
The UI fails to show anything as a result of the command because it tries to parse that as JSON at https://github.com/respawner/looking-glass/blob/master/js/looking-glass.js#L94. You can see it failing to parse that in the browser console. It probably should be able to catch a non-JSON response and present that as an error by itself. I've been unable to track down why the |
I found a workaround that works for me.... Since the output was showing up in the responses I got and only the PHP warning was what was breaking the JSON parser, I disabled PHP warnings from showing up in the output. I added |
I'm having an error which all the commands entered doesnt resulting anything. If debugging the browser, i'm having this issues.
Uncaught SyntaxError: Unexpected token < in JSON at position 0 at Function.parse [as parseJSON] (<anonymous>) at Object.<anonymous> (looking-glass.js:94) at c (jquery-3.4.1.min.js:2) at Object.fireWith [as resolveWith] (jquery-3.4.1.min.js:2) at l (jquery-3.4.1.min.js:2) at XMLHttpRequest.<anonymous> (jquery-3.4.1.min.js:2)
Using FreeBSD 12.1-p1 with PHP 7.2 and Apache 2.4
The text was updated successfully, but these errors were encountered: