Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'get' #33

Closed
cjpark-sapcsa opened this issue Jun 2, 2023 · 1 comment
Closed

AttributeError: 'NoneType' object has no attribute 'get' #33

cjpark-sapcsa opened this issue Jun 2, 2023 · 1 comment

Comments

@cjpark-sapcsa
Copy link

Hi All,

Running 01-Lod-Data-AcogSearch.ipynb

Change these below with your own services credentials

AZURE_SEARCH_ENDPOINT = "" <= URL of Search Service
AZURE_SEARCH_KEY = " " <= Keys Manage admin keys
COG_SERVICES_NAME = "" <= name of search service, e.g cog-search-xxxx
COG_SERVICES_KEY = "" <= cog-search-xxxx , this is manage query keys

I have added like the above and
400 false


AttributeError Traceback (most recent call last)
Cell In[27], line 6
4 # pprint(json.dumps(r.json(), indent=1))
5 print(r.status_code)
----> 6 print("Status:",r.json().get('lastResult').get('status'))
7 print("Items Processed:",r.json().get('lastResult').get('itemsProcessed'))
8 print(r.ok)

AttributeError: 'NoneType' object has no attribute 'get'. anyone seen this erro ?

@pablomarin
Copy link
Owner

This happens when you run this cell inmediately after the prior cell and when the indexer has not process any file yet. Give it a minute or so , so that the indexer starts processing and you will see results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants