<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question RuntimeException on Trouble Ticket Open API call in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/runtimeexception-on-trouble-ticket-open-api-call/m-p/2991655#M1130852</link>
    <description>&lt;P&gt;Develop Instance, Washington DC Patch 4, Hotfix 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to run a curl command to create an incident via the Trouble Ticket Open API I receive this error:&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;com.glide.rest.util.RESTRuntimeException: No Content-Type set by API while streaming: org.mozilla.javascript.JavaScriptException: com.glide.rest.util.RESTRuntimeException: No Content-Type set by API while streaming: org.mozilla.javascript.Context.makeJavaScriptException(Context.java:2248)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:2230)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.MemberBox.invoke(MemberBox.java:163)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:717)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.FunctionObject.call(FunctionObject.java:654)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2973)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1720)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1030)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:161)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.caller.gen.sys_ws_operation_628997584f130110c5ff2624b2ce0b41_operation_script.call(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.ScriptCaller.call(ScriptCaller.java:22)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:3058)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2981)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1720)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1030)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:161)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.caller.gen.sys_ws_operation_628997584f130110c5ff2624b2ce0b41_operation_script.call(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.ScriptCaller.call(ScriptCaller.java:22)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:725)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:4024)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:173)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:412)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:223)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:141)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:364)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:251)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:230)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.rest.service.custom.CustomService.runScript(CustomService.java:90)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.rest.service.custom.CustomService.execute(CustomService.java:77)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.rest.handler.impl.ServiceHandlerImpl.invokeService(ServiceHandlerImpl.java:37)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.rest.processors.RESTAPIProcessor.process(RESTAPIProcessor.java:345)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.processors.AProcessor.runProcessor(AProcessor.java:762)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.processors.AProcessor.processTransaction(AProcessor.java:313)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:187)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:175)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:58)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.sys.Transaction.run(Transaction.java:2734)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.ui.HTTPTransaction.run(HTTPTransaction.java:35)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.base/java.lang.Thread.run(Thread.java:840)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The command is here:&lt;BR /&gt;```&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl -X POST "https://&amp;lt;instance_id&amp;gt;.service-now.com/api/sn_ind_tsm_sdwan/ticket/troubleTicket" --header "Accept:application/json" \&lt;BR /&gt;--header "Content-Type:application/json" --header "x-sn-apikey:&amp;nbsp; &amp;lt;api_key&amp;gt;"&lt;BR /&gt;```&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note that the User has the `sn_ind_tsm_sdwan.ticket_integrator` role and i can successfully hit the Table API with the same API KEY.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2024 23:16:23 GMT</pubDate>
    <dc:creator>cody89677833602</dc:creator>
    <dc:date>2024-07-16T23:16:23Z</dc:date>
    <item>
      <title>RuntimeException on Trouble Ticket Open API call</title>
      <link>https://www.servicenow.com/community/developer-forum/runtimeexception-on-trouble-ticket-open-api-call/m-p/2991655#M1130852</link>
      <description>&lt;P&gt;Develop Instance, Washington DC Patch 4, Hotfix 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to run a curl command to create an incident via the Trouble Ticket Open API I receive this error:&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;com.glide.rest.util.RESTRuntimeException: No Content-Type set by API while streaming: org.mozilla.javascript.JavaScriptException: com.glide.rest.util.RESTRuntimeException: No Content-Type set by API while streaming: org.mozilla.javascript.Context.makeJavaScriptException(Context.java:2248)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:2230)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.MemberBox.invoke(MemberBox.java:163)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:717)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.FunctionObject.call(FunctionObject.java:654)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2973)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1720)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1030)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:161)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.caller.gen.sys_ws_operation_628997584f130110c5ff2624b2ce0b41_operation_script.call(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.ScriptCaller.call(ScriptCaller.java:22)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:3058)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2981)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1720)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1030)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:161)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.caller.gen.sys_ws_operation_628997584f130110c5ff2624b2ce0b41_operation_script.call(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.ScriptCaller.call(ScriptCaller.java:22)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:725)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:4024)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:173)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:412)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:223)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:141)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:364)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:251)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:230)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.rest.service.custom.CustomService.runScript(CustomService.java:90)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.rest.service.custom.CustomService.execute(CustomService.java:77)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.rest.handler.impl.ServiceHandlerImpl.invokeService(ServiceHandlerImpl.java:37)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.rest.processors.RESTAPIProcessor.process(RESTAPIProcessor.java:345)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.processors.AProcessor.runProcessor(AProcessor.java:762)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.processors.AProcessor.processTransaction(AProcessor.java:313)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:187)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:175)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:58)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.sys.Transaction.run(Transaction.java:2734)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.glide.ui.HTTPTransaction.run(HTTPTransaction.java:35)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.base/java.lang.Thread.run(Thread.java:840)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The command is here:&lt;BR /&gt;```&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl -X POST "https://&amp;lt;instance_id&amp;gt;.service-now.com/api/sn_ind_tsm_sdwan/ticket/troubleTicket" --header "Accept:application/json" \&lt;BR /&gt;--header "Content-Type:application/json" --header "x-sn-apikey:&amp;nbsp; &amp;lt;api_key&amp;gt;"&lt;BR /&gt;```&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note that the User has the `sn_ind_tsm_sdwan.ticket_integrator` role and i can successfully hit the Table API with the same API KEY.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 23:16:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/runtimeexception-on-trouble-ticket-open-api-call/m-p/2991655#M1130852</guid>
      <dc:creator>cody89677833602</dc:creator>
      <dc:date>2024-07-16T23:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeException on Trouble Ticket Open API call</title>
      <link>https://www.servicenow.com/community/developer-forum/runtimeexception-on-trouble-ticket-open-api-call/m-p/3133195#M1166775</link>
      <description>&lt;P&gt;where you able to identify the issue ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 14:19:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/runtimeexception-on-trouble-ticket-open-api-call/m-p/3133195#M1166775</guid>
      <dc:creator>sach1</dc:creator>
      <dc:date>2024-12-20T14:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeException on Trouble Ticket Open API call</title>
      <link>https://www.servicenow.com/community/developer-forum/runtimeexception-on-trouble-ticket-open-api-call/m-p/3217706#M1190345</link>
      <description>&lt;P&gt;I was able to get this to work by passing in the attribute of "ticketType" of "case".&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 16:41:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/runtimeexception-on-trouble-ticket-open-api-call/m-p/3217706#M1190345</guid>
      <dc:creator>Jace Benson</dc:creator>
      <dc:date>2025-03-25T16:41:58Z</dc:date>
    </item>
  </channel>
</rss>

