question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[textanalytics] AttributeError: NoneType object has no attribute 'errors'

See original GitHub issue

Got a customer report that this error arises transiently when calling begin_analyze_healthcare_entities in the 5.1.0 version of the library.

I’ve mocked what I think might be happening here, but I haven’t been able to reproduce the error on my own to confirm it.

My assumption is that the service is failing or cancelling the task which is resulting in the HealthcareTaskResult being returned in the response without results or errors properties. We try to access the errors on the HealthcareResult in code and the error is raised.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kristapraticocommented, Aug 31, 2022

Update: the client library is unable to discern whether the “cancelled” status comes from the service or is initiated by the user. We do not want to raise an exception in the latter case. The service plans to add an error code/message at the job level if the quota is exceeded on the free tier. Once this fix is in place, we can handle this gracefully in the library. Service tracking issue: https://dev.azure.com/msazure/Cognitive Services/_workitems/edit/15424421

0reactions
kristapraticocommented, Oct 20, 2022

This has been resolved by the service. Now a 4xx is returned if quota is exceeded and the client library raises the error:

azure.core.exceptions.HttpResponseError: (403) Out of call volume quota for TextAnalytics F0 pricing tier. Please retry after 3 days. To increase your call volume switch to a paid tier.
Code: 403
Message: Out of call volume quota for TextAnalytics F0 pricing tier. Please retry after 3 days. To increase your call volume switch to a paid tier.

No patch is necessary for the client library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'NoneType' object has no attribute 'text' - Stack ...
Here, if found is None , then the if statement isn't entered and no error will be thrown. Share.
Read more >
GDCM-532: Receive "error: <class 'AttributeError'>:'NoneType ...
Issue This error is recieved when running a workflow in Gallery that ... <class 'AttributeError'>:'NoneType' object has no attribute 'get'
Read more >
How To Fix Attribute Error: 'NoneType' Object Has ... - YouTube
Article Link: https://blog.finxter.com/how-to-fix- error - nonetype - object - has - no - attribute -group/ Email Academy: ...
Read more >
AttributeError: 'NoneType' object has no attribute 'call' on ...
It only consists in triggering a dbt build, which succeeds, but somehow the flow itself fails. Here's the error:.
Read more >
How do I fix : attributeerror: 'nonetype' object has no attribute ...
When ever you get a problems that involves a message such as " 'nonetype' object has no attribute ..." it means the same...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found