0

I have a dummy function inside the Apps Script that I want to execute with Postman.

Apps Script simple dummy function

Every seems to be OK in my postman request, but I always recieve an error 500.

Here's the raw body:

{
  "function": "sendData",
  "parameters": [],  
  "devMode": false
}

The auth token and ScriptId are correct.

This is the response:

{
    "error": {
        "code": 500,
        "message": "Internal error encountered.",
        "status": "INTERNAL"
    }
}

It's driving me crazy. Any help on that?

I'm trying to execute a function that resides in the Apps Script from a Google Sheet.

I'm expecting to recieve an http code 200.

4
  • Add code as text, not as image. Commented Jun 25, 2024 at 1:25
  • 1
    Could you run sendData manually in the editor? Commented Jun 25, 2024 at 3:48
  • @TheMaster Yeah, I can run that function from the editor with no errors. Commented Jul 3, 2024 at 3:48
  • @Wicket Sorry, my bad. Commented Jul 3, 2024 at 3:49

1 Answer 1

0

Make sure you are following the steps to execute functions through the Apps Script API, the target script first needs to be deployed as API-executable.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.