Getting Error : Field Value validation failed in RESOURCE_KEY: Data Processing Exception while processing fields [/key/developerApplication]
On the API : https://api.linkedin.com/v2/eventSubscriptions/(developerApplication:urn%3Ali%3AdeveloperApplication%3A534asdasd3323,user:urn%3Ali%3Aperson%3A342342332,entity:urn%3Ali%3Aorganization%3A234243,eventType:ORGANIZATION_SOCIAL_ACTION_NOTIFICATIONS)
Getting Response :
{
"serviceErrorCode": 100,
"message": "Field Value validation failed in RESOURCE_KEY: Data Processing Exception while processing fields [/key/developerApplication]",
"status": 403
}
Can anyone help me what's going wrong?
When you go to LinkedIn app settings, you will see
"Client ID: (letters and numbers)"
This is what you seem to have used but this is not the one you need. Instead, you want the old, numeric ID, which you will see in the URL of the app settings:
https://www.linkedin.com/developers/apps/<the integer id of your
app>/settings
So, it will go like this:
...developerApplication:urn%3Ali%3AdeveloperApplication%3A<the integer id of your app>...
My queries with Ionic 2 (2.0.0-beta.10) to a site outside back with a 404 :
var url = 'https//api.mysite.fr/example;
return this.http.get(url).map(res => res.json());
Response in chrome tool :
Failed to load resource: the server responded with a status of 404 (Not Found)
url: "http://localhost:8100/https//api.mysite.fr/example"
How to not add the local execution url to the remote address to contact?
You're missing the : after the url scheme. It should be: var url = 'https://api.mysite.fr/example;
I am using ejabberd 15.11. While a client is trying to retrieve message from archive getting below error in error logs. My client is sending and receiving encrypted messages
Error log:
[error] <0.2337.0>#gen_iq_handler:process_iq:128
{
{badmatch,{error,{4,<<"not well-formed (invalid token)">>}}},
[
{mod_mam,'-select/8-fun-4-',3,[{file,"src/mod_mam.erl"},{line,681}]},
{lists,map,2,[{file,"lists.erl"},{line,1237}]},
{mod_mam,select,8,[{file,"src/mod_mam.erl"},{line,677}]},
{mod_mam,select_and_send,10,[{file,"src/mod_mam.erl"},{line,577}]},
{gen_iq_handler,process_iq,6,[{file,"src/gen_iq_handler.erl"},{line,127}]},
{gen_iq_handler,handle_info,2,[{file,"src/gen_iq_handler.erl"},{line,171}]},
{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,593}]},
{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,659}]}
]
}
crypto:block_encrypt(Type, Key, Ivec, PlainText)is not working insted of it try to use crypto:aes_cfb_128_encrypt(Key, Ivec, PlainText) function.
This Web API action returns an HTTP 500 (Internal Server Error) status code:
public IHttpActionResult Post()
{
return InternalServerError();
}
But this action returns an HTTP 400 (Bad Request) status code:
public IHttpActionResult Post()
{
return InternalServerError(new Exception());
}
I would expect both actions to return a 500 status code and the second action puts some of the error's details in the response body.
My first thought is that this is a bug but I wanted to get some other input. Is there any good reason why a 400 should be returned in the second action instead of a 500?
UPDATE:
The documentation on this method reads:
Creates an System.Web.Http.Results.ExceptionResult (500 Internal Server Error) with the specified exception.
I'm thinking more and more this is a bug.
Right, this was a known issue which was fixed after Web API 2 release...you can use the following workaround to fix this issue..example:
return new ResponseMessageResult(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, invalidOpException));
Following was the issue that was logged before:
https://aspnetwebstack.codeplex.com/workitem/1318
I have a thread class which makes a web request. After 20-30 urls request, its throwing exception: System.Web.HttpException: Request timed out.
My code is below where it is throwing exception:
httpReq.AllowAutoRedirect = false;
httpReq.KeepAlive = false;
httpReq.Headers.Add("Location", "");
httpReq.Timeout = this.HttpRequestTimeout;
httpRes = (HttpWebResponse)httpReq.GetResponse();
In last line : httpRes = (HttpWebResponse)httpReq.GetResponse();
it is throwing exception.
"The remote server returned an error: (403) Forbidden."
I am using session for setting some values with the request header.
I got the answer. I was not using httpRes.close() method after using response object. That's why after 80-90 request it was returning : "The remote server returned an error: (403) Forbidden ".