-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Commands send from the Printer Control Terminal Double Wrapped Array #240
Comments
Console gives absolutely no output on this |
I'll need to repro to figure it out as it's client side and that's all compiled for the user. When typing in the command for me it sends fine, even with mutli-lined sends. Same for enter fire, and Button press fire. |
Issue is the same in all browser and on both printers. |
That's a good thought. I gather nothing comes up in the console when you send it apart from the octoprint error? I will have a search and see if there's any issues with language parsing from an input. If that is the case it's probably my new line interpretation or that's my guess. I presumed it would be fine now a days. I'll put some more console outputs in a push tomorrow for you to try if you'd have time? Just trying to cover all basis for now, not sure which one of the above would be most fruitful. |
What's confusing is theres that little u before the array quotes which I've never seen before. |
I'll fire up my work laptop later today, it's with EN-US localization - the we can see if that makes a difference. |
It's all sent and managed client side at the minute so fingers crossed. I'll see about putting some UTF-8 encoding on the field should resolve it. |
Nope - still doesn't work on the laptop. I can see on the Octoprint terminal pane that the error are the same. |
It's something else then. I wonder if it's related to the profile bug. Could you fire me through your state and API logs please? |
Unfortunately still an issue :( From console |
Well this one's a PIA, even worse the array is there formatted perfect in the error output :/ |
Right so I've double checked everything on this side of things, the function, the log... it for all intensive purposes is sending the correct array, and that's even outputted in your log you sent. I see the individual key press G, 2, 8 and then the array created on the input ["G28"]. I put another set of logging in to see what's getting fired. You should have something like the above. If that is showing correctly, then I'd say this was something to do with OctoPrint specifically. |
I've found a bug, somehow that Array is getting double quoted before sending but I can't understand why that is only not working on your system. I'll update the title to reflect this and have a look. |
* Fix send button not flashing on success/failure of command * Fix the return to secondary class * Fixed issue #240 - Commands sent from Printer Control Terminal double wrapped array * updated to reflext changes * compile client * Remove console log, rebuild runners Co-authored-by: David Zwart <davidzwa@gmail.com>
* Fix send button not flashing on success/failure of command * Fix the return to secondary class * Fixed issue #240 - Commands sent from Printer Control Terminal double wrapped array * updated to reflext changes * compile client * Remove console log, rebuild runners Co-authored-by: David Zwart <davidzwa@gmail.com>
To better help the developer understand your issue, please fill in the information below. Failing to do so will waste the developer and your own time in sorting the issue. Thanks!
Describe the bug
When sending a command from Octofarm, it looks like the string is formattet in some strange way, resulting in Octoprint responding with an error
To Reproduce
Steps to reproduce the behavior:
Expected behavior
M or G codes being sent correctly, as entered in the text field.
Screenshots
![image](https://user-images.githubusercontent.com/14296463/106314233-b6a09f00-6269-11eb-9d94-8f0bfedea8a4.png)
Versions (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: