Hi Rajjaz, These things need to concern https://api.cashboardapp.com/projects
If you're on an older account plan that restricts the number of active projects you may encounter a HTTP 403 (FORBIDDEN) status code. Thank you Regards. *M. Nifras Ismail* [image: LinkedIn] <http://lk.linkedin.com/pub/nifras-ismail/54/343/94b> On Fri, Jul 17, 2015 at 10:14 PM, Sriashalya Srivathsan <[email protected]> wrote: > Hi Rajjaz, > I think, according to your init method it is enough to give your correct > email address ,subdomain and the password that is the API key you need to > get from the API. > > and send those parameters in a json format through REST > > consider when you send the parameters through REST set the header as > content type -application/json > > Thank you > > On Fri, Jul 17, 2015 at 6:57 PM, Rajjaz Mohammed <[email protected]> wrote: > >> is there any solution >> ---------- Forwarded message ---------- >> From: Rajjaz Mohammed <[email protected]> >> Date: Fri, Jul 17, 2015 at 6:14 PM >> Subject: Re: [Dev] [dev] [cashboard Connector] HTTP/1.1 401 Unauthorized >> erro >> To: Malaka Silva <[email protected]> >> >> >> if i run other methods without init method [2] then i got error [3]. >> something problem in url format >> >> [2] HTTP 401 (UNAUTHORIZED) - You can't login because your login has been >> archived. >> >> [3][2015-07-17 18:10:46,097] ERROR - ClientUtils The system cannot infer >> the transport information from the >> {+uri.var.apiUrl}/client_contacts.{+uri.var.format} URL. >> [2015-07-17 18:10:46,098] ERROR - Axis2Sender Unexpected error during >> sending message out >> org.apache.axis2.AxisFault: The system cannot infer the transport >> information from the {+uri.var.apiUrl}/client_contacts.{+uri.var.format} >> URL. >> at >> org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:81) >> at >> org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:115) >> at >> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) >> at >> org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:482) >> at >> org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:59) >> at >> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:338) >> at >> org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:333) >> at >> org.apache.synapse.endpoints.HTTPEndpoint.send(HTTPEndpoint.java:79) >> at >> org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:114) >> at >> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77) >> at >> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47) >> at >> org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:77) >> at >> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:129) >> at >> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:78) >> at >> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77) >> at >> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47) >> at >> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131) >> at >> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:166) >> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) >> at >> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) >> at >> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) >> at >> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> at >> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) >> at >> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) >> at >> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >> at >> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >> at >> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >> at >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) >> at >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) >> at >> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) >> at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) >> at >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) >> at >> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) >> at >> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49) >> at >> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) >> at >> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) >> at >> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) >> at >> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) >> at >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >> at >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) >> at >> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) >> at >> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) >> at >> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> at java.lang.Thread.run(Thread.java:745) >> [2015-07-17 18:10:46,099] WARN - EndpointContext Endpoint : >> AnonymousEndpoint will be marked SUSPENDED as it failed >> [2015-07-17 18:10:46,099] WARN - EndpointContext Suspending endpoint : >> AnonymousEndpoint - last suspend duration was : 30000ms and current suspend >> duration is : 30000ms - Next retry after : Fri Jul 17 18:11:16 IST 2015 >> >> >> On Fri, Jul 17, 2015 at 5:56 PM, Rajjaz Mohammed <[email protected]> wrote: >> >>> Hi Malaka, >>> this error getting when i get access token using [1] according to >>> Documentation >>> and there is another method also available to get access token that not >>> in this [2] according cashboard tutorial >>> <https://api.wso2connectortest.cashboardapp.com/> >>> >>> [1] >>> <cashboard.init> >>> <apiUrl>{$ctx:apiUrl}</apiUrl> >>> <emailAddress>{$ctx:emailAddress}</emailAddress> >>> <password>{$ctx:password}</password> >>> <subdomain>{$ctx:subdomain}</subdomain> >>> <format>{$ctx:format}</format> >>> </cashboard.init> >>> >>> [2] >>> Authentication >>> >>> In order to use the Cashboard API you must have the proper auth >>> credentials. >>> >>> * You can obtain a Cashboard API key by logging into your Cashboard >>> account, then navigating to the Settings > Your Info screen. Your API key >>> is shown on the right-hand side of the page.* >>> >>> The Cashboard API is available to employees of your company only. >>> Your clients may not use the Cashboard API. >>> >>> Authentication is handled via HTTP Basic Auth over HTTPS. >>> Use your Cashboard subdomain as the *username*, and your API Key as the >>> *password*. >>> Every request except Account Creation >>> <https://api.wso2connectortest.cashboardapp.com/account#create> must >>> contain the Authorization HTTP header. >>> Authentication Responses >>> >>> - HTTP 401 (UNAUTHORIZED) - Your request doesn't contain the proper >>> Authentication header. >>> - HTTP 401 (UNAUTHORIZED) - You can't login because your login has >>> been archived. >>> - HTTP 402 (PAYMENT REQUIRED) - Your account has been disabled due >>> to non-payment. >>> >>> >>> >>> On Fri, Jul 17, 2015 at 5:51 PM, Malaka Silva <[email protected]> wrote: >>> >>>> Hi Rajjaz, >>>> >>>> Correct me if I am wrong. >>>> >>>> I think you need to get the access token first manually using the OAUTH >>>> flow. With this call you can only renew the access token. >>>> >>>> When you are using the connector need to setup the access token first >>>> in init method and use other operations afterwards, >>>> >>>> >>>> >>>> On Fri, Jul 17, 2015 at 3:07 PM, Rajjaz Mohammed <[email protected]> >>>> wrote: >>>> >>>>> Hi All, >>>>> I’m trying get auth through esb connector but I'm getting the [1] >>>>> error but as mentioned in Readme file i added [2] and in the request i >>>>> tried with Content-Type application/xml and without in header but error is >>>>> repeating. but test cases are working for credentials >>>>> >>>>> [1] [2015-07-17 14:53:05,989] WARN - SequenceMediator onError >>>>> handler : faultHandlerSeq for sequence : null cannot be found >>>>> [2015-07-17 14:53:05,997] DEBUG - headers http-outgoing-4 >> POST >>>>> /account/auth HTTP/1.1 >>>>> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> cookie: >>>>> menuPanel=visible; menuPanelType=main; region3_registry_menu=none; >>>>> region1_manage_menu=visible; >>>>> wso2.carbon.rememberme=admin-edd93278-6bb8-4c1e-a125-e1a68fda90a3; >>>>> JSESSIONID=F27885DC357E102C7716ACB2B7A60F16; >>>>> requestedURI=../../carbon/admin/index.jsp; region1_configure_menu=none; >>>>> region4_monitor_menu=none; region5_tools_menu=none; >>>>> current-breadcrumb=manage_menu%2Cmediation_menu%2Cconfig_menu%23configadmin+index.jsp*; >>>>> MSG14371098586160.4839721793267453=true; >>>>> MSG14371109157250.2970512011319284=true; >>>>> MSG14371127261360.8698314854355778=true >>>>> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> >>>>> cache-control: no-cache >>>>> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> >>>>> accept-language: null >>>>> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> accept: >>>>> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 >>>>> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> >>>>> accept-encoding: gzip, deflate >>>>> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> >>>>> Content-Type: application/xml >>>>> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> pragma: >>>>> no-cache >>>>> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> >>>>> Transfer-Encoding: chunked >>>>> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> Host: >>>>> api.wso2connectortest.cashboardapp.com:443 >>>>> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> >>>>> Connection: Keep-Alive >>>>> [2015-07-17 14:53:05,998] DEBUG - headers http-outgoing-4 >> >>>>> User-Agent: Synapse-PT-HttpComponents-NIO >>>>> [2015-07-17 14:53:06,259] DEBUG - headers http-outgoing-4 << HTTP/1.1 >>>>> 401 Unauthorized >>>>> [2015-07-17 14:53:06,260] DEBUG - headers http-outgoing-4 << >>>>> Content-Type: text/html; charset=utf-8 >>>>> [2015-07-17 14:53:06,260] DEBUG - headers http-outgoing-4 << >>>>> Content-Length: 1 >>>>> [2015-07-17 14:53:06,260] DEBUG - headers http-outgoing-4 << >>>>> Connection: keep-alive >>>>> [2015-07-17 14:53:06,260] DEBUG - headers http-outgoing-4 << Status: >>>>> 401 Unauthorized >>>>> [2015-07-17 14:53:06,261] DEBUG - headers http-outgoing-4 << >>>>> X-Runtime: 1 >>>>> [2015-07-17 14:53:06,261] DEBUG - headers http-outgoing-4 << >>>>> Set-Cookie: session=39e8c677ae9f4b276ec03ee8b7954022; domain=. >>>>> cashboardapp.com; path=/; HttpOnly >>>>> [2015-07-17 14:53:06,261] DEBUG - headers http-outgoing-4 << >>>>> Set-Cookie: _session_id=55f0b47acf3f1ac03abfa0e09979fd78; domain=. >>>>> cashboardapp.com; path=/; HttpOnly >>>>> [2015-07-17 14:53:06,261] DEBUG - headers http-outgoing-4 << >>>>> Cache-Control: no-cache >>>>> [2015-07-17 14:53:06,262] DEBUG - headers http-outgoing-4 << >>>>> X-Powered-By: Phusion Passenger 4.0.30 >>>>> [2015-07-17 14:53:06,262] DEBUG - headers http-outgoing-4 << Date: >>>>> Fri, 17 Jul 2015 09:23:05 GMT >>>>> [2015-07-17 14:53:06,262] DEBUG - headers http-outgoing-4 << Server: >>>>> nginx/1.4.4 + Phusion Passenger 4.0.30 >>>>> [2015-07-17 14:53:06,267] WARN - SequenceMediator onError handler : >>>>> faultHandlerSeq for sequence : null cannot be found >>>>> [2015-07-17 14:53:06,272] INFO - LogMediator To: , WSAction: , >>>>> SOAPAction: , MessageID: urn:uuid:0719e31a-64cd-4120-9264-a7f2ce605fec, >>>>> Direction: response, MESSAGE = Executing default 'fault' sequence, >>>>> ERROR_CODE = 0, ERROR_MESSAGE = java.lang.NullPointerException, Envelope: >>>>> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv=" >>>>> http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><ns:binary >>>>> xmlns:ns="http://ws.apache.org/commons/ns/payload >>>>> ">IA==</ns:binary></soapenv:Body></soapenv:Envelope> >>>>> >>>>> [2] >>>>> <messageFormatter contentType="text/html" >>>>> class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> >>>>> <messageBuilder contentType="text/html" >>>>> class="org.wso2.carbon.relay.BinaryRelayBuilder"/> >>>>> >>>>> <messageFormatter contentType="application/pdf" >>>>> class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> >>>>> <messageBuilder contentType="application/pdf" >>>>> class="org.wso2.carbon.relay.BinaryRelayBuilder"/> >>>>> >>>>> -- >>>>> Thank you >>>>> Best Regards >>>>> >>>>> Rajjaz HM >>>>> Associate Software Engineer >>>>> WSO2 Inc. <http://wso2.com/> >>>>> lean | enterprise | middleware >>>>> Mobile : +94752833834 >>>>> Email :[email protected] >>>>> LinkedIn | Blogger | WSO2 Profile >>>>> <http://wso2.com/about/team/mohammer_rajjaz/> >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> [email protected] >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> Best Regards, >>>> >>>> Malaka Silva >>>> Senior Tech Lead >>>> M: +94 777 219 791 >>>> Tel : 94 11 214 5345 >>>> Fax :94 11 2145300 >>>> Skype : malaka.sampath.silva >>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 >>>> Blog : http://mrmalakasilva.blogspot.com/ >>>> >>>> WSO2, Inc. >>>> lean . enterprise . middleware >>>> http://www.wso2.com/ >>>> http://www.wso2.com/about/team/malaka-silva/ >>>> <http://wso2.com/about/team/malaka-silva/> >>>> >>>> Save a tree -Conserve nature & Save the world for your future. Print >>>> this email only if it is absolutely necessary. >>>> >>> >>> >>> >>> -- >>> Thank you >>> Best Regards >>> >>> Rajjaz HM >>> Associate Software Engineer >>> WSO2 Inc. <http://wso2.com/> >>> lean | enterprise | middleware >>> Mobile : +94752833834 >>> Email :[email protected] >>> LinkedIn | Blogger | WSO2 Profile >>> <http://wso2.com/about/team/mohammer_rajjaz/> >>> >> >> >> >> -- >> Thank you >> Best Regards >> >> Rajjaz HM >> Associate Software Engineer >> WSO2 Inc. <http://wso2.com/> >> lean | enterprise | middleware >> Mobile : +94752833834 >> Email :[email protected] >> LinkedIn | Blogger | WSO2 Profile >> <http://wso2.com/about/team/mohammer_rajjaz/> >> >> >> >> -- >> Thank you >> Best Regards >> >> Rajjaz HM >> Associate Software Engineer >> WSO2 Inc. <http://wso2.com/> >> lean | enterprise | middleware >> Mobile : +94752833834 >> Email :[email protected] >> LinkedIn | Blogger | WSO2 Profile >> <http://wso2.com/about/team/mohammer_rajjaz/> >> > > > > -- > Regards > S.Sriashalya, > WSO2 *Inc*. > lean . enterprise . middleware > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
