[textanalytics] AttributeError: NoneType object has no attribute 'errors'
See original GitHub issueGot 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:
- Created a year ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
This has been resolved by the service. Now a 4xx is returned if quota is exceeded and the client library raises the error:
No patch is necessary for the client library.