Odata4j 0.7 Client Expected Status Missing NOT_FOUND - client-side

Does anyone know why the Odata4j 0.7.0 client have updated expected response status? For more details you can refer to the issue raised on following link;
https://code.google.com/p/odata4j/issues/detail?id=264

Related

How to get other member's profile details from linkedin api

I am trying to fetch users details from linkedIn api. After generating accesstoken I can get my details from linkedIn api but I want to get other members details. How to get this work? please help me.
I have tried the solutions according to the documentation.
As per the documentation we have to sent a get request to the GET https://api.linkedin.com/rest/people/(id:{person ID}) to Retrieve Other Member's Profile. When I am sending the get request it is showing me
data: {
code: 'VERSION_MISSING',
message: 'A version must be present. Please specify a version by adding the LinkedIn-Version header.'
}
this error. after searching the documentation I found that there is a note saying
in order to make the sample calls above succeed, you must include
X-RestLi-Protocol-Version:2.0.0 in your request header.
I have added that to and still getting the error.
I experienced the same issue. After some browsing this works for me:
Use https://api.linkedin.com/v2/me instead of https://api.linkedin.com/rest/me
You need to pass the version number like this: LinkedIn-Version: 202210. It worked for me without changing /rest to /v2. More info here: Introducing API Versioning and New Content APIs.
I had the same problem.
As the error says, I tried using LinkedIn-Version as the header key and got:
{
"code": "INVALID_VERSION",
"message": "API versions should have date format as YYYYMM or YYYYMM.RR where RR is the revision"
}
With the header value being: 2.0.0
So I tried sending as value: 202201.01 ==> YYYY=2022, MM=01, RR=01
YYYY: year
MM: month
RR: revision
Obtaining:
{
"code": "NONEXISTENT_VERSION",
"message": "Requested version 20220101 is not active"
}
Trying some different dates and revision codes, I got to value = 202204.01 that gave me:
{
"serviceErrorCode": 100,
"code": "ACCESS_DENIED",
"message": "Not enough permissions to access: me.GET.20220401"
}
I'm also facing the same issue but you can use this
https://api.linkedin.com/v2/me
and it will work
This version worked for me: 202204.01
Then I got:
"code": "EMPTY_ACCESS_TOKEN",
"message": "Empty oauth2 access token"
Which I think can be fixed by getting the access token by implementing the 3-legged OAuth. I have successfully implemented that for getting someone's profile but I am doing this for getting org info

Randomly occurring Unable to retrieve document from: '[PII is hidden]'

I came along with so many questions and answers but could not understand or find solution as my case is bit different.
I am using Azure with openIdconnect for Active directory authentication (ASP.Net framework 4.6.1)
it has been years it was working fine but a day before yesterday this error occurred for only about 1 hour. error was occurring when trying to do AD authentication.
"
Exception Message: IDX20803: Unable to obtain configuration from: '[PII is hidden]'.
Inner Exception: System.IO.IOException: IDX20804: Unable to retrieve document from: '[PII is hidden]'. ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
StackTrace: System.InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden]'. ---> System.IO.IOException: IDX20804: Unable to retrieve document from: '[PII is hidden]'. ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request)."
during this local authentication and remaining whole application was working fine. After 1 hour this issue was automatically resolved.
same happened yesterday. issue occurred for 1 hour and resolved automatically.
Other solution are suggesting to modify IdentityModelEventSource.ShowPII = true;
But I dont think so it requires code modification.
Please guide what can be reason that this happens for only short time.
Note: this is happening on only one server all applications on other servers are working fine
Please check if below are causes.
The error usually appears when application's configuration is not
able to retrieve the OIDC metadata properly. Please make sure
Instance,Domain,TenantId,ClientId are correct.
And Please make sure to use the latest version (or to 4.7.2) of your
dot-net framework as few tasks may get to require updated / latest
version of “.NET” framework in order for them to work properly.
This error might occur if the application is running on TLS 1.1 or TLS 1.0,as they are depreciated. Use the protocol - TLS 1.2 for application.
In some cases packages maybe defaulting to TLS 1.1 even after that when loading that metadata and may take time to check for the correct one.
To resolve, try to add the following in Global.asax.cs which will allow the openid-configuration to be obtained as it is pointed to tls1.2 or above. Make sure to change the tls to 1.2 in portal also.
protected void Application_Start()
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3; // allow TLSV1.2 and SSL3 only
//other code
}
References:
azure ad enable-support-tls-environment | microsoft docs
Error: Unable to retrieve document from:
'https://login.microsoftonline.com/.well-known/openid-configuration'- Microsoft Q&A

LinkedIn EasyApply API (/v2/jobApplications) returns HTTP 500, serviceErrorCode:2003. What does it mean?

Requests like the one below:
https://api.linkedin.com/v2/jobApplications?q=jobPostings&jobPostings=urn:li:jobPosting:1111111111&jobPostings=urn:li:jobPosting:2222222222&projection=(elements*(member~(firstName,lastName),contactEmail,contactPhoneNumber,jobPosting,id,applyDate,resume),paging)&appliedUntilDate=1597691706&appliedAfterDate=1596482106
return the following all the time:
Message: {"message":"Internal Server Error","serviceErrorCode":2003,"status":500}
HResult: -2146233079
Can anyone please let me know
What serviceErrorCode:2003 means?
Is there any API reference with the list of serviceErrorCode codes?
Thanks
serviceErrorCode:2003 simply means that job posting with the provided id was not found.

CCAVENUE with asp.net

I follow this step from http://aravin.net/how-to-integration-ccavenue-payment-gateway-into-your-website-using-asp-net-with-screenshot/.
I am doing this with asp.net c#(mvc).
Still I am getting following error:
Error Code: 10001 Invalid Request – Encrypted request invalid/not present.
Don’t worry… It happens to the best of us.
Along with that I want to store “Error Code” which is "order_status" in response code of ccavenue in database
whether it is success or failure with its code number.
how can I do that.
Thank You.

Quectel M66 unable to input the data for HTTP POST

Quectell M66 doesn't let me input the data which I need to send to a LAMP Web Server through HTTP POST method. After entering the AT+QHTTPPOST=10,50 command Quectell outputs: CNNECT and it doesn't let me input the data at all and after sometime gives +CME ERROR:3825 which is timeout error. My codes are:
AT+CGATT=1
AT+QIFGCNT=0
AT+QICSGP=1,"bsnlnet"
AT+QIREGAPP
AT+QIACT
AT+QILOCIP
AT+QHTTPURL=66,30
my_66byte_long_URL
AT+QHTTPPOST=10,50
AT+QIDEACT
Recently, I had found the answer to my own problem and I am posting it here so that it could be of help to others.
enter link description here

Resources