# Calling a Server Side Script continuously fails

**URL:** <https://community.dreamfactory.com/t/calling-a-server-side-script-continuously-fails/655>\
**Category:** Server-Side Scripting\
**Created:** [December 15, 2014, 1:14pm UTC](https://community.dreamfactory.com/t/calling-a-server-side-script-continuously-fails/655 "2014-12-15T13:14:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cardblower](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@cardblower](https://community.dreamfactory.com/u/cardblower)\
**Post date:** [December 15, 2014, 1:14pm UTC](https://community.dreamfactory.com/t/calling-a-server-side-script-continuously-fails/655/1 "2014-12-15T13:14:43Z")

</div>

Hi,

I have a simple test script that works when calling it from Swagger.

I’ve called it testscript (original eh?) but cannot get it to successfully call from the rest service.

For my REST headers, I’m including the session\_token and content-type.  
I have app\_name for my query string  
and for the body, I have;  
the is\_user\_script set to Boolean True  
the variable I want to pass: “PIN” set to 1234  
I had also added the path and **tag** parameters from your example as well to test, but I just cannot get it working,

I always get the following result:  
{  
“status”:500,  
“uri”:“[http://myIPaddress/rest/system/script/testscript](http://myIPaddress/rest/system/script/testscript)”,  
“response”:{  
“error”:[  
{  
“context”:null,  
“message”:“The script ID “script.testscript” is not valid or unreadable.”,  
“code”:500  
}  
]  
}  
}

can you help please? I can’t seem to get past this bit.

many thanks

Andy.

---

<div class="post-metadata">

**Author:** ![cardblower](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@cardblower](https://community.dreamfactory.com/u/cardblower)\
**Post date:** [December 17, 2014, 11:30am UTC](https://community.dreamfactory.com/t/calling-a-server-side-script-continuously-fails/655/2 "2014-12-17T11:30:07Z")

</div>

ok, so I’ve managed to overcome this.  
Oddly, I needed to place the “is\_user\_script” parameter in the query rather than the body.

---

<div class="post-metadata">

**Author:** ![jeffreystables](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jeffreystables/32/173_2.png) [@jeffreystables](https://community.dreamfactory.com/u/jeffreystables)\
**Post date:** [December 22, 2014, 5:56pm UTC](https://community.dreamfactory.com/t/calling-a-server-side-script-continuously-fails/655/3 "2014-12-22T17:56:12Z")

</div>

That’s correct @cardblower, `is_user_script=true` is a query parameter. [Blog post for more details](https://blog.dreamfactory.com/build-your-own-web-services-using-dreamfactory-custom-scripts).
