Thanks <@U0RQY0KK5>! :wave: Hello everyone, Iโ€™m Jo...
# prisma-whats-new
d
Thanks @nilan! ๐Ÿ‘‹ Hello everyone, Iโ€™m Josh Dzielak, a Developer Advocate at Algolia. If you have any questions about Algolia or how to connect your graphcool apps donโ€™t hesitate to ask.
๐Ÿ™ 8
๐Ÿ™Œ 1
๐ŸŽ‰ 8
d
@dzello hello! I have followed the instrcuctions on integrating my graph.cool account with Algolia, however when I attempt to make an API call I am given a 403 error, which upon inspection shows "{"message":"indexName is not valid","status":400}". Even though the indexName is exactly as I've called it in the graph.cool integration setup. I've even attempted to hard-code the name and still no change.
Any help appreciated !
d
Happy to help! Can you see the index in your Algolia dashboard?
d
hi, no I can't ๐Ÿ˜ž
maybe this is an error with graph.cool because I have even tried simplifying my query to just one field, so I know my query is not stopping the index from being created. And the API key I generated in Algolia has the correct permissions to create and delete.
I've fixed it, my query was missing a space after 'node', then I had to add the additional permissions to the API from Algolia to get it to display. Your question helped me alot! thank you
d
Ahh ok, glad you got it resolved (and sorry I didnโ€™t reply earlier, was bouncing around all day). This might be a thing to warn people about in the future?
d
yes it would !
d
@nilan is this something worth messaging around in the docs?
n
Thanks for the heads up, @dsummers can you help me reproduce this error? what caused the problem here?
d
hi @nilan, in the "Create a new Algolia Restricted Key" section of the Algolia + graph.cool docs, it only says to add ACL add + delete records permissions, but I needed to enable search to get this working for me. Without checking the ACL option for search under the API settings I was getting a 403 error displayed in my Algolia dashboard.
n
ohhh, you should not do this! Don't include the add records/delete records key in your application! Instead, use your search key from the Algolia settings in your application
otherwise you allow malicious users of your application to manipulate your search index
d
changing it now ! thank you
๐Ÿ‘ 2
d
Good catch here