Scenario

Post any data to a restlet script and get this error

{
    "error": {
        "code": "UNEXPECTED_ERROR",
        "message": "Unsupported file extension: "
    }
}

Solution

This is due to no file extension on the script file. Make sure you appended .js file extension after File Name on the script file record, even if the File Type is JavaScript File already.

Last modified: 29/06/2023

Author

Comments

Write a Reply or Comment

Your email address will not be published.