Jump to content

403 Forbidden


Recommended Posts

Posted

I'm currently receiving the following message when posting anything which includes code:

 

403.png.298dd33c11a865ab02911168b22c6619.png

 

Is this affecting others or is it just me?

Posted

OK. testing this now...

 

<h1>Hello</h1>
<p>Some sample code</p>

So, that worked. What happens when I try to submit?

Posted

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.

Posted
(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
)
Posted

Testing this here.

 

(defun foo (arg)
 (sin (+ 9 arg))
)

(defun foo (arg)
 (sin (+ 9 arg))
)

Posted

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

Posted

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
)

 

Posted
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")
)

 

Posted

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"))
 
 

Posted

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.

Posted

I'm now able to post the code that I previously couldn't here, so the issue appears to be at least partially fixed.

Posted

I'm now receiving the 403 error when attempting to post an embedded link to another post on the forum.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...