Lee Mac Posted September 25, 2019 Posted September 25, 2019 I'm currently receiving the following message when posting anything which includes code: Is this affecting others or is it just me? Quote
CADTutor Posted September 26, 2019 Posted September 26, 2019 OK. testing this now... <h1>Hello</h1> <p>Some sample code</p> So, that worked. What happens when I try to submit? Quote
CADTutor Posted September 26, 2019 Posted September 26, 2019 Ah! I got the same error as you when posting AutoLISP code without syntax highlighting but as you can see above, HTML works fine. Puzzling! I'm going to have to do some investigation... So it looks like the error occurs when any AutoLISP is posted. I've tried in a code block with and without syntax highlighting and outside of a code block. In each case I got the 403 error. There have been no software updates recently, so I'm guessing this must be a server issue. Quote
GURU Support Posted September 26, 2019 Posted September 26, 2019 This is a test post - please ignore. Quote
GURU Support Posted September 26, 2019 Posted September 26, 2019 (defun DETAIL_0 () (setq SYSVAR_LIST (mapcar '(lambda (X) (list X (getvar X))) '("CMDECHO" "OSMODE" "ORTHOMODE" "HIGHLIGHT" ))) (setvar "CMDECHO" 0) (setvar "OSMODE" 0) (setvar "ORTHOMODE" 0) (setvar "HIGHLIGHT" 0) (if (zerop (getvar "TILEMODE")) ;;make sure we are mspace (if (= (getvar "CVPORT") 1) (progn ;;we are in paper space! (alert "You must be in Model Space for this routine to function!") (exit) ;;hard abort! )) ) (if (zerop (getvar "WORLDUCS")) (command "_UCS" "_W")) nil ) Quote
rkmcswain Posted September 26, 2019 Posted September 26, 2019 Testing this here. (defun foo (arg) (sin (+ 9 arg)) ) (defun foo (arg) (sin (+ 9 arg)) ) Quote
CADTutor Posted September 26, 2019 Posted September 26, 2019 Hi All, it looks like we've managed to fix this issue but I'd be grateful if you could try posting some code in this thread as a test to ensure it's a robust fix. Thanks Quote
CADTutor Posted September 26, 2019 Posted September 26, 2019 Another test... (defun DETAIL_0 () (setq SYSVAR_LIST (mapcar '(lambda (X) (list X (getvar X))) '("CMDECHO" "OSMODE" "ORTHOMODE" "HIGHLIGHT" ))) (setvar "CMDECHO" 0) (setvar "OSMODE" 0) (setvar "ORTHOMODE" 0) (setvar "HIGHLIGHT" 0) (if (zerop (getvar "TILEMODE")) ;;make sure we are mspace (if (= (getvar "CVPORT") 1) (progn ;;we are in paper space! (alert "You must be in Model Space for this routine to function!") (exit) ;;hard abort! )) ) (if (zerop (getvar "WORLDUCS")) (command "_UCS" "_W")) nil ) Quote
rkmcswain Posted September 26, 2019 Posted September 26, 2019 1 hour ago, CADTutor said: Hi All, it looks like we've managed to fix this issue but I'd be grateful if you could try posting some code in this thread as a test to ensure it's a robust fix. Thanks (defun c:Hello () (alert "Hello World") ) (defun c:Hello () (alert "Hello World") ) Quote
paulmcz Posted September 26, 2019 Posted September 26, 2019 I tried but got 403 forbidden error Quote
CADTutor Posted September 26, 2019 Posted September 26, 2019 @paulmcz could you post the code snippet you got the error with as an attachement so we can use it to test? Quote
paulmcz Posted September 26, 2019 Posted September 26, 2019 This is a part of what I posted: ;;; Measures distance between 2 points, along polyline (defun c:lm (/ a b d e d1 d2 p pl oecho osn) (vl-load-com) (command "cmdecho" (getvar "cmdecho")) Quote
paulmcz Posted September 26, 2019 Posted September 26, 2019 In previous post, I copied the whole routine as regular text (without placing it in brackets wrapping) and got the error again. Then, I deleted a half of the routine - got the error. Only when I deleted most of the routine, it went through. Quote
paulmcz Posted September 26, 2019 Posted September 26, 2019 This is the routine Distance-LM.lsp Quote
Lee Mac Posted September 26, 2019 Author Posted September 26, 2019 I'm now able to post the code that I previously couldn't here, so the issue appears to be at least partially fixed. Quote
Lee Mac Posted September 26, 2019 Author Posted September 26, 2019 I'm now receiving the 403 error when attempting to post an embedded link to another post on the forum. Quote
Lee Mac Posted September 26, 2019 Author Posted September 26, 2019 (edited) Testing posting a link without embedding: https://www.cadtutor.net/forum/topic/55494-insert-a-field-using-lisp/?tab=comments#comment-554477 EDIT: It appears that it's the automatic embedding that's causing it to fail. Edited September 26, 2019 by Lee Mac Quote
CADTutor Posted September 26, 2019 Posted September 26, 2019 OK, I also get the 403 error when posting paulmcz's code. Quote
CADTutor Posted September 26, 2019 Posted September 26, 2019 Testing an embedded link. That seems to work OK... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.