Closed ImanYZ closed 3 years ago
Does the API key you are using have the correct permissions?
Yes, it is. The Algolia technical support team gave me instructions to create a new API key with the right permissions and after creating the new API key with the right permissions, I still get the same error.
In addition, I asked two other developers in our team to install the extension and try to use it on test apps. They got the same error.
Can you provide me the error you are getting?
I've put the error message in the very first post in this thread:
{"severity":"WARNING","message":"Warning, FIREBASE_CONFIG and GCLOUD_PROJECT environment variables are missing. Initializing firebase-admin will fail"}
It console logs the following for a really long time because our collection is large, but it does not create any Algolia index records.
WARNING: The back fill process will index your entire collection which will impact your Search Operation Quota. Please visit https://www.algolia.com/doc/faq/accounts-billing/how-algolia-count-records-and-operation/ for more details. Do you want to continue? (y/N): {"severity":"DEBUG","message":"[ 'field', 'admin' ]"}
{"severity":"DEBUG","message":"[ 'value', 'RJMaryala' ]"}
{"severity":"DEBUG","message":"[ 'field', 'content' ]"}
{"severity":"DEBUG","message":"[\n 'value',\n 'Park, E., Chiles, C., Cinciripini, P., Foley, K., Fucito, L., Haas, J., . . . Toll, B. (2020, October 13). Impact of the covid‐19 pandemic on telehealth research in cancer prevention and care: A call to sustain telehealth advances. Retrieved February 18, 2021, from https://doi.org/10.1002/cncr.33227'\n]"}
{"severity":"DEBUG","message":"[ 'field', 'createdAt' ]"}
{"severity":"DEBUG","message":"[ 'value', 1613686595408 ]"}
{"severity":"DEBUG","message":"[ 'field', 'nodeType' ]"}
{"severity":"DEBUG","message":"[ 'value', 'Reference' ]"}
{"severity":"DEBUG","message":"[ 'field', 'tags' ]"}
{"severity":"DEBUG","message":"[\n 'value',\n [ { title: 'SARS-CoV-2 (COVID-19)', node: 'uYgvhNdciHcuK7ioGZEv' } ]\n]"}
{"severity":"DEBUG","message":"[ 'field', 'title' ]"}
{"severity":"DEBUG","message":"[\n 'value',\n 'Impact of the COVID‐19 pandemic on telehealth research in cancer prevention and care: A call to sustain telehealth advances'\n]"}
{"severity":"DEBUG","message":"[ 'field', 'admin' ]"}
{"severity":"DEBUG","message":"[ 'value', 'sohineetsaha' ]"}
{"severity":"DEBUG","message":"[ 'field', 'content' ]"}
{"severity":"DEBUG","message":"[\n 'value',\n 'In late April 2020, the CDC confirmed the first cases of the virus among cats in the USA. Two cats of different households were tested positive in the state of New York. One cat had presumably been infected due to the owner having COVID-19. The other cat, however, had presumably been affected by an asymptomatic or an outside source as no household members tested positive.\\n' +\n '\\n' +\n '\\n' +\n 'In early June 2020, the first dog in the USA to test positive for the virus was a German Shepherd in the state of New York. The dog, Buddy, had been infected after one of his owner’s tested positive for the virus. Though he was expected to survive, Buddy died three months after experiencing life-threatening symptoms and one month after being confirmed positive for the virus. However, late awareness of Buddy’s condition with lymphoma currently leaves questions of his ultimate cause of death. \\n' +\n '\\t\\t\\n' +\n '\\n'\n]"}
{"severity":"DEBUG","message":"[ 'field', 'createdAt' ]"}
{"severity":"DEBUG","message":"[ 'value', 1597465187755 ]"}
{"severity":"DEBUG","message":"[ 'field', 'nodeType' ]"}
{"severity":"DEBUG","message":"[ 'value', 'Relation' ]"}
{"severity":"DEBUG","message":"[ 'field', 'tags' ]"}
{"severity":"DEBUG","message":"[\n 'value',\n [ { title: 'SARS-CoV-2 (COVID-19)', node: 'uYgvhNdciHcuK7ioGZEv' } ]\n]"}
{"severity":"DEBUG","message":"[ 'field', 'title' ]"}
{"severity":"DEBUG","message":"[ 'value', 'First Positive Cases in Cats and Dogs in USA' ]"}
{"severity":"DEBUG","message":"[ 'field', 'admin' ]"}
{"severity":"DEBUG","message":"[ 'value', 'Grae' ]"}
{"severity":"DEBUG","message":"[ 'field', 'content' ]"}
{"severity":"DEBUG","message":"[\n 'value',\n 'The process models approach considers information-seeking skills as a necessary piece to the information-seeking process. The lessons are geared more towards bolstering those skills and how to seek information using the library tools. '\n]"}
{"severity":"DEBUG","message":"[ 'field', 'createdAt' ]"}
{"severity":"DEBUG","message":"[ 'value', 1613420452357 ]"}
{"severity":"DEBUG","message":"[ 'field', 'nodeType' ]"}
{"severity":"DEBUG","message":"[ 'value', 'Concept' ]"}
{"severity":"DEBUG","message":"[ 'field', 'tags' ]"}
{"severity":"DEBUG","message":"[\n 'value',\n [ { title: 'Library Science', node: 'gRRpc1O61kMszcrW07lW' } ]\n]"}
{"severity":"DEBUG","message":"[ 'field', 'title' ]"}
{"severity":"DEBUG","message":"[ 'value', 'The Process Models Approach Instruction Model in ISP' ]"}
{"severity":"DEBUG","message":"[ 'field', 'admin' ]"}
{"severity":"DEBUG","message":"[ 'value', 'catgrillo' ]"}
{"severity":"DEBUG","message":"[ 'field', 'content' ]"}
{"severity":"DEBUG","message":"[\n 'value',\n 'Committed members of a community are more likely to provide meaningful content that other users value. Additionally, commitment is an important building block for behavior regulation. Certain types of commitment can occur in online communities, the type of commitment you want will differ depending on your vision for the community. '\n]"}
{"severity":"DEBUG","message":"[ 'field', 'createdAt' ]"}
{"severity":"DEBUG","message":"[ 'value', 1600478869565 ]"}
{"severity":"DEBUG","message":"[ 'field', 'nodeType' ]"}
{"severity":"DEBUG","message":"[ 'value', 'Concept' ]"}
{"severity":"DEBUG","message":"[ 'field', 'tags' ]"}
{"severity":"DEBUG","message":"[\n 'value',\n [\n {\n node: 'nL5vJd6vfnRC5s9uGeRU',\n title: 'CSCW (Computer-supported cooperative work)'\n }\n ]\n]"}
ok, so you created the key, but you did not specify the index. I have updated your API key to give access to the nodeindex.
I ran the script again. I'm getting the exact same error message and all the logs.
I need access to your Algolia account. Please go https://www.algolia.com/account/support and give me read access so I can check the settings.
Were you able to figure out the issue? Can I close this ticket?
Yes, it's fixed. Thank you.
Hey @ImanYZ, can you post your solution that fixed this issue
I just ignored that error message and let the script complete its execution. It seems working because it generated the records on my Algolia index.
After installing the "Search with Algolia" Firebase extension, the extension page has three tabs: 1- How this extension works 2- Extension configuration 3- APIs and resources
I followed the instructions in first tab "How this extension works". I've copied the instructions that I get on this page below for your reference. After running,"algoliaAPIKey":"****","algoliaIndexName":"nodesIndex","collectionPath":"nodes","fields":"admin,content,createdAt,nodeType,tags,title","severity":"INFO","message":"Initializing extension with configuration"}
WARNING: The back fill process will index your entire collection which will impact your Search Operation Quota. Please visit https://www.algolia.com/doc/faq/accounts-billing/how-algolia-count-records-and-operation/ for more details. Do you want to continue? (y/N):
I answered "y" to this question. Then, it generated a lot of logs but there is no index record generated on Algolia.
npx firestore-algolia-search
, the first lines of console logs are as follows. {"severity":"WARNING","message":"Warning, FIREBASE_CONFIG and GCLOUD_PROJECT environment variables are missing. Initializing firebase-admin will fail"} {"algoliaAppId":