Hi Susinda,
Normally we see this error when the payload is invalid. First please verify
the payload with [1]. And carbonContext.getLoggedInUser() can return null
when the token is expired.


[1]
https://docs.wso2.com/display/APPM120/app-manager/publisher/#!/operations#AppsApi#appsAppTypePost



On Thu, Jan 26, 2017 at 11:25 AM, Susinda Perera <[email protected]> wrote:

> Hi All
>
> I'm getting following error[1] when I use following request to 
> *https://localhost:9443/api/appm/publisher/v1.1/apps/mobileapp
> <https://localhost:9443/api/appm/publisher/v1.1/apps/mobileapp>* to
> create a app.  Note that Authorization Bearer header is also present.
> From debug found that carbonContext.getLoggedInUser() returns null.
> Any idea what is wrong or can someone give some insight.
>
> POST
> {"displayName":"Catalog","iconFile":"89e4b66198989999.jpg","description":"Sample
> application","banner":"402fd08981a33fb8.jpg","
> mediaType":"application\/vnd.wso2-mobileapp+xml","type":"
> enterprise","version":"1.0","marketType":"enterprise","
> platform":"android","screenshots":["bd0deb0dd7a4d8ed.jpg","
> 17ade2074eec7adf.jpg","caded496ebe7700c.jpg"],"
> provider":"admin","appType":"android","name":"Catalog","
> category":"Business","appmeta":{"path":"2d40ed0e1b22977c.
> apk","package":"org.wso2.app.catalog","version":"1.0"}}
>
> [1]
> ERROR - GlobalThrowableMapper One or more request body parameters contain
> disallowed values.
>
>
> --
> *Susinda Perera*
> Software Engineer
> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
> Mobile:(+94)716049075
> Blog: susinda.blogspot.com
> WSO2 Inc. http://wso2.com/
> Tel : 94 11 214 5345 Fax :94 11 2145300
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Lahiru Cooray*
Software Engineer
WSO2, Inc.;http://wso2.com/
lean.enterprise.middleware

Mobile: +94 715 654154
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to