Internal Server Error Message in LinkedIn API - linkedin

In last few days everyone is facing Internal server error on company status update via LinkedIn API (docs).
Sample response with request Id:
{"requestId":"P8T2EIBBT7","errorCode":0,"message":"Internal service error","status":500,"timestamp":1517889931789}}
{"requestId":"XNNMPVUFA4","errorCode":0,"message":"Internal service error","status":500,"timestamp":1517877007035}}
What could the cause be?

Related

503 Service Unavailable error in linkedin api

We have used https://api.linkedin.com/v2/industries api to get industries details but this api getting failed and returns status code as 503
note : random linkedin api returns status code as 503.
like -
https://api.linkedin.com/v2/organizations
https://api.linkedin.com/v2/organizationalEntityFollowerStatistics
https://api.linkedin.com/v2/organizationPageStatistics
I have used Access Token, and this error occurred last 24 Hrs only.

Getting 400 error while creating "Web Token" when hitting enterprises.webTokens.create endpoint to use iframe in EMM console

We are getting 200 success while hitting endpoints like create signup URL, create enterprise, create enrollment token etc. through API Explorer or Postman. But while we are trying to hit the "create web token" endpoint we are getting 400 error.
We are implementing Google Android Management API. Finally, we are proceeding for implementing iframe which required the web token as it's carrier. But we are failing to do so.
For your reference:
enrollmentTokens.create endpoint Link below:
https://developers.google.com/android/management/reference/rest/v1/enterprises.enrollmentTokens/create
In the API explorer we are providing
parent = enterprises/LC00x1u8p0 and selecting Google OAuth 2.0 credentials.
With this much information API Explorer giving 200 success message.
enterprises.webTokens.create endpoint Link below:
https://developers.google.com/android/management/reference/rest/v1/enterprises.webTokens/create
In the API explorer we are providing
parent = enterprises/LC00x1u8p0 and selecting Google OAuth 2.0 credentials.
With this the same information API Explorer giving 400 error. I have posted the error message and unable to understand where is the error coming.
Is our console cloud project need any special supplement for giving access to web token? or what exactly is the lacking that giving this 400 error?
We are failing to understand the error message. Please check the below response.
​{
"error": {
"code": 400,
"message": "domain: \"gdata.CoreErrorDomain\"\ncode: \"INVALID_VALUE\"\nargument: \"tokenSpec.parent\"\ndebug_info: \"code: INVALID_VALUE\\nhttp status: 400\\narguments: [tokenSpec.parent]\\nvalue: \\ncause: com.google.wireless.android.vending.enterprise.common.exceptions.InvalidParameterException: EnterpriseException{httpStatus=400, code=gdata.CoreErrorDomain.INVALID_VALUE, arguments=[tokenSpec.parent]}\\n\\tat com.google.wireless.android.vending.enterprise.common.exceptions.InvalidParameterException$Builder.build(InvalidParameterException.java:60)\\n\\tat com.google.wireless.android.vending.enterprise.business.EmbeddedUiServiceImpl.validate(EmbeddedUiServiceImpl.java:173)\\n\\tat com.google.wireless.android.vending.enterprise.business.EmbeddedUiServiceImpl.createWebToken(EmbeddedUiServiceImpl.java:123)\\n\\tat com.google.wireless.android.vending.enterprise.actions.mdmapi.EnterpriseActions$CreateWebTokenAction.execute(EnterpriseActions.java:360)\\n\\tat com.google.apps.framework.request.impl.InterceptorInvocation$Rpc.beforeProceed(InterceptorInvocation.java:147)\\n\\tat com.google.apps.framework.request.impl.InterceptorInvocation.proceed(InterceptorInvocation.java:158)\\n\\tat com.google.apps.framework.request.impl.RpcDispatcher.proceed(RpcDispatcher.java:136)\\n\\tat com.google.apps.framework.request.impl.RpcDispatcher.proceed(RpcDispatcher.java:42)\\n\\tat com.google.apps.framework.request.impl.AbstractDispatcher.doExecuteChainInternal(AbstractDispatcher.java:503)\\n\\tat com.google.apps.framework.request.impl.AbstractDispatcher.doExecuteChain(AbstractDispatcher.java:497)\\n\\tat com.google.apps.framework.request.impl.AbstractDispatcher.execute(AbstractDispatcher.java:331)\\n\\tat com.google.apps.framework.request.impl.AbstractDispatcher.executeAsync(AbstractDispatcher.java:254)\\n\\tat com.google.apps.framework.request.impl.RpcDispatcher.handleRpc(RpcDispatcher.java:126)\\n\\tat com.google.apps.framework.request.impl.RpcScopedHandlerFactoryImpl.run(RpcScopedHandlerFactoryImpl.java:276)\\n\\tat com.google.apps.framework.request.impl.RpcScopedHandlerFactoryImpl$2.handleRequest(RpcScopedHandlerFactoryImpl.java:126)\\n\\tat com.google.net.rpc3.impl.server.RpcServerInterceptor2Util$RpcApplicationHandlerAdaptor.handleRequest(RpcServerInterceptor2Util.java:82)\\n\\tat com.google.net.rpc3.impl.server.RpcServerInternalContext.runRpcInApplicationWithCancellation(RpcServerInternalContext.java:672)\\n\\tat com.google.net.rpc3.impl.server.RpcServerInternalContext.lambda$runRpcInApplication$0(RpcServerInternalContext.java:637)\\n\\tat io.grpc.Context.run(Context.java:536)\\n\\tat com.google.net.rpc3.impl.server.RpcServerInternalContext.runRpcInApplication(RpcServerInternalContext.java:637)\\n\\tat com.google.net.rpc3.impl.server.RpcServerChannel$4.apply(RpcServerChannel.java:1026)\\n\\tat com.google.net.rpc3.impl.server.RpcServerChannel$4.apply(RpcServerChannel.java:996)\\n\\tat com.google.common.util.concurrent.AbstractTransformFuture$TransformFuture.doTransform(AbstractTransformFuture.java:253)\\n\\tat com.google.common.util.concurrent.AbstractTransformFuture$TransformFuture.doTransform(AbstractTransformFuture.java:243)\\n\\tat com.google.common.util.concurrent.AbstractTransformFuture.run(AbstractTransformFuture.java:124)\\n\\tat com.google.common.context.ContextRunnable.runInContext(ContextRunnable.java:89)\\n\\tat com.google.common.context.ContextRunnable$1.run(ContextRunnable.java:78)\\n\\tat io.grpc.Context.run(Context.java:536)\\n\\tat com.google.tracing.GenericContextCallback.runInInheritedContext(GenericContextCallback.java:75)\\n\\tat com.google.common.context.ContextRunnable.run(ContextRunnable.java:74)\\n\\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\\n\\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\\n\\tat com.google.apps.framework.server.AbstractThreadPoolModule$InitializingThreadFactory.lambda$newThread$0(AbstractThreadPoolModule.java:416)\\n\\tat java.base/java.lang.Thread.run(Unknown Source)\\n\\n\"\n",
"status": "INVALID_ARGUMENT"
}
}
Thanks you very much for your attention. Any help to fix the issue is appreciable.
You need to supply the Request body of the enterprises.webTokens.create method. The request body contains an instance of WebToken.
Request body:
{
"parentFrameUrl": "<the URL of the page that will be hosting the iFrame>",
"enabledFeatures": [
"PLAY_SEARCH",
"PRIVATE_APPS",
"WEB_APPS",
"STORE_BUILDER"
],
"permissions": [
"APPROVE_APPS"
]
}
If successful, the response body contains a newly created instance of WebToken containing the value you need to embed the iFrame on the hosting page.

Openiddict refresh/access token not working on multiple servers

We have used asp.net identity for authentication and integrated openiddict in it. in our case when our app is running on a single server it works fine but when it is running on load balance (multiple servers) in some cases (i.e,) Access token was issued by server 1, and that access token is not accepted by server 2 it throws 401 error.
We have enabled reference tokens pls check here
After adding
services.AddDataProtection().PersistKeysToDbContext()
asp.net identity works fine in multiple servers but, there is still an issue in openiddict
API call error message & token error message => This error occurs when server 1 token is used in server 2
Thanks in advance

IBM Conversation API - What should be a endpoint URL and Parameters

I try to access IBM conversation using Postman tool but getting 404 (Resource not found) error.
EndPoint : https://gateway.watsonplatform.net/conversation/api/v1/workspaces/883c7704-02c4-41fc-b8a0-aea1d0325c5a/message?version=2016-09-20
my workspace id = 883c7704-02c4-41fc-b8a0-aea1d0325c5a
Is there anything wrong in endpoint or parameter?.
How to pass version?
Your endpoint looks correct if you're trying to send a message to conversation: https://www.ibm.com/watson/developercloud/conversation/api/v1/?curl#send_message
Try changing the version to the most updated: version=2017-05-26

Azure API Apps, not returning model state errors

I have a ASP.net Web API using the "Azure API app preview" template in Visual Studio 2015 that I am deploying to an Azure API App.
In my application I am using model attribute validation, and a action filter as described in this article to call ModelState.isValid on all http requests coming in, and return the model state with errors in a http 400 response.
This all works perfectly locally, and indeed when deployed to an Azure Web Site, but when deploying the same code to an Azure API APP the request seems to be getting re-wrapped in a new response (see below, it appears to be adding status and source fields to the json) and the results of the model state errors dropped from the request.
Is there a way I can force API Apps to include these in the re-wrapped response, or indeed is this a bug? A 400 response without the underlying errors is not of much use to any API user. I have seen others over on MSDN forums with the same issue.
Results locally & Result on Azure Web Site
HTTP/1.1 400 Bad Request
{
"Message":"The request is invalid.",
"Errors":
{
"InitialAmount":["The value 'a' is not valid for InitialAmount.",
"The InitialAmount field is required."]
}
}
Results Azure Api Apps
HTTP/1.1 400 Bad Request
{
"status": 400,
"source": "https://MYAPIAPP.azurewebsites.net/api/Test?InitialAmount=a",
"message": "The request is invalid."
}

Resources