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

Initializer exception at CheckIndexerStatus #110

Open
glyphgitjembo opened this issue Jul 6, 2021 · 3 comments
Open

Initializer exception at CheckIndexerStatus #110

glyphgitjembo opened this issue Jul 6, 2021 · 3 comments

Comments

@glyphgitjembo
Copy link

glyphgitjembo commented Jul 6, 2021

When running the initializer I got this error:
Error retrieving indexer status: Object reference not set to an instance of an object

I tried to debug where does it happen and it is on this line.

requestStatus = info.LastResult.Status;

Trying to check info.Status it is running. But info.LastResult is null.

@Careyjmac
Copy link
Collaborator

Usually this is because the indexer hasn't started running yet. There is usually a little bit of a delay for the indexer to get going, and usually by the time you have built and deployed the website that delay is over so this code can successfully run, but it looks like in your case it wasn't, so sorry about that. It could also depend on if the region you selected for your search service to run in is currently busy with other jobs, in which case it may take a few minutes for there to be space for your newly created job.

@glyphgitjembo
Copy link
Author

I tried to add an if info.LastResult == null check inside the while loop to continue checking with a cap of 30x. But still after thread sleep 3000 x30 still the info.LastResult is still null.

I haven't changed any region on the deployment settings. Search service is at South Central US. Is this the right region?

@Careyjmac
Copy link
Collaborator

Hmmm, it shouldn't take that long. South Central US is one of our busiest regions though. It should work but like I said might just take awhile. I am changing the default region to West US 2 to hopefully help with this in #111 and I was having no issues testing there over the last day or so.

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