Authentication failed error

Solved!
Posted in General by Nicholas Lee Wed Dec 16 2015 04:06:12 GMT+0000 (UTC)·8·Viewed 1,137 times

Hi i am currently facing this error and I have no idea to solve this. Exception in thread "main" com.aylien.textapi.TextAPIException: com.aylien.textapi.TextAPIException: Authentication failed at com.aylien.textapi.TextAPIClient.sentiment(TextAPIClient.java:458) at AylienSentiAnalyzer.main(AylienSentiAnalyzer.java:21) Caused by: com.aylien.textapi.TextAPIException: Authentication failed at com.aylien.textapi.HttpSender.extractTextAPIError(HttpSender.java:95) at com.aylien.textapi.HttpSender.post(HttpSender.java:75) at com.aylien.textapi.TextAPIClient.doHttpRequest(TextAPIClient.java:584) at com.aylien.textapi.TextAPIClient.sentiment(TextAPIClient.java:450) ... 1 more
Amir M. Saeid
Dec 16, 2015

Hi Nicholas,

There are several reasons that you may get an "Authentication failed" error:

  • Invalid Application ID or Application Key
  • Reaching per minute rate limits of your plan
  • Reaching daily limits of your plan

If you adhere to the rate limits using valid credentials, you shouldn't be getting such error. "X-RateLimit-*" headers in response—or TextAPIClient.getRateLimits()—should give you detailed information regarding your quota and usage.

Nicholas Lee
Dec 19, 2015

Hi, got it thanks. I think its due to the per minute rate limit... Thank a lot

Nahed Taha Hassan Zeini
Dec 31, 2015

I am facing the same problem. Please help me

Nahed Taha Hassan Zeini
Dec 31, 2015

The Test Icon in rapidminer not active when I am entering the key and id.

Amir M. Saeid
Dec 31, 2015

Hi Nahed,

Looking at your application (ID: 1fc8a5ea) you have used up your plan's daily quota—1000 requests per day.

Thanks,

Amir

Nahed Taha Hassan Zeini
Dec 31, 2015

Thanks. You mean that I can try again tomorrow.

Amir M. Saeid
Dec 31, 2015

Yes. Daily quotas are reset midnight UTC.


Amir M. Saeid marked this as solved
Nahed Taha Hassan Zeini
Dec 31, 2015

Thank You :)

Markdown is allowed