howto solve:"{"message" : "An internal error has occurred; support code 4adff3ba9fb31f8a1634d61e"}"

hey guys, I am trying to update my variables in variables studio using API, so I am encountering a problem when writing the values to the studio, but I can successfully read values from the variable studio using API, when checking the ORT Log it is showing this:{
22:39:672 | DEBUG | connect:_log_response:1106 | Request failed, details: { "moreInfoUrl" : "", "message" : "An internal error has occurred; support code 4adff3ba9fb31f8a1634d61e",

"status" : 500, "code" : 0, "supportCode" : "4adff3ba9fb31f8a1634d61e"

}
from google: 5xx Server error responses: The server failed to fulfill a valid request due to an issue on its end. 

what caused this and how to resolve this? this this the server error?

thank you for your time.

Answers

  • tammy_cooper714
    tammy_cooper714 Member Posts: 1 ✭
    edited February 23

    @ geometry dash 3d: Yes, this is a server-side (500) error, but in Onshape it is usually triggered by an invalid request, not a platform outage. Since you can read variables but not write, the most common causes are:

    1. Wrong endpoint – You must use a workspace (/w/), not a version (/v/) or microversion (/m/)**.

    2. Incorrect JSON format – Body must be:

    {
    "variables": [
    {
    "name": "VarName",
    "expression": "25 mm"
    }
    ]
    }

    3. Editing a released/read-only document

    4. Missing Content-Type: application/json header