Creating Request through Postman REST API client
PAWAN KAUSHIK May 17, 2018 3:37 AMHi All,
I am working on Remedy 9.1.04. I am new to REST API and i am using Postman client to start with REST API. I had performed the below mentioned steps but i am not able to connect to the AR Server. COuld you please help me to configure the jetty server so that I can communicate from Postman client to Remedy Server.
-> Installed the Postman client for windows
-> Comment out the https connector for the jetty server and uncomment the http port configuration in jetty selector file.
->trying to hit the url http://devremedy:8008/api/arsys/jwt/login and getting the below error:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body>
<h2>HTTP ERROR 500</h2>
<p>Problem accessing /api/arsys/jwt/login. Reason:
<pre> Server Error</pre>
</p>
<h3>Caused by:</h3>
<pre>java.lang.RuntimeException: java.text.ParseException: Invalid serialized unsecured/JWS/JWE object: Missing part delimiters
at com.bmc.arsys.restapi.ARRequestFilter.readAuthorizationHeaderField(ARRequestFilter.java:108)
at com.bmc.arsys.restapi.ARRequestFilter.doFilter(ARRequestFilter.java:65)
at org.eclipse.equinox.http.servlet.internal.FilterRegistration.doFilter(FilterRegistration.java:81)
at org.eclipse.equinox.http.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:35)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:132)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:835)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
at org.eclipse.jetty.server.Server.handle(Server.java:517)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
at java.lang.Thread.run(Unknown Source)
Caused by: java.text.ParseException: Invalid serialized unsecured/JWS/JWE object: Missing part delimiters
at com.nimbusds.jose.JOSEObject.split(JOSEObject.java:204)
at com.nimbusds.jwt.SignedJWT.parse(SignedJWT.java:93)
at com.bmc.arsys.restapi.ARRequestFilter.readAuthorizationHeaderField(ARRequestFilter.java:89)
COuld you please suggest me that what configurations i need to do at jetty end as well as at postman client so that i can do post and get methods ?
Thanks in Advance!