Try our conversational search powered by Generative AI!

Episerver find - Your key is not authorized to access (GET)

Vote:
 

I am trying to get autocomplete to work follwing this guide-> http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Find/11/searching-with-javascript/Autocomplete/. I have added autocomplete queries in the admin mode but when doing some typing I only get a 403 - forbidden back. 

Your key is not authorized to access (GET)

I am using a developer licens. Should it work with developer licens?

If it should work with developer licens, what can I have missed? Thanks
#144547
Feb 15, 2016 14:54
Vote:
 

Hi!

Are you sure you want to expose your index like that? This will enable users to search all content, published or not.

I would rather use the example as shown here: http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Find/11/search-statistics/search-statistics/

Or, for full control, create your own controller and use:

SearchClient.Instance.Statistics().GetAutocomplete(query)
#144548
Feb 15, 2016 15:04
Vote:
 

Thanks for the answer. That would be more what I am looking for!

Another related question.

  • Even though I have .Track() on all my UnifiedSearchFor queries nothing is showing upp in the statistics view.
  • Even thoug I have added autocomplete suggestions I don't get any suggestions back.

Do you know what I am doing wrong?

#144549
Feb 15, 2016 15:13
Vote:
 

Not sure about that, but you could try using Fiddler to see what is being tracked. To catch all the request in fiddler, add the following to web.config:

  <system.net>
    <defaultProxy>
      <!-- fiddler -->
      <proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://127.0.0.1:8888" usesystemdefault="false"/>
     
    </defaultProxy>
#144550
Feb 15, 2016 15:20
Vote:
 

Did you have to turn on statistics tracking on index? I think I had to before at least...? Might be worth checking...

#144570
Feb 15, 2016 17:23
Vote:
 

If it's still the same, I think that button is on the same interface where you create your developer index...

#144571
Feb 15, 2016 17:25
Vote:
 

Hi Daniel, I don't see such a button. I might have found the source of the issue. In the alloy demo site when doing @Html.RequiredClientResources("Footer") it renders this ->

<script type="text/javascript">
void(function(){var tUrl = "/util/LiveMonitor/Tracking/Index?contentId=5&languageId=en";tUrl += (tUrl.indexOf("?") > 0 ? "&" : "?");var tUrl1 = tUrl + "r=" + Math.random() + "&referrer=" + escape(document.referrer);document.write("<img id='LiveMonTransparentImage' src='" + tUrl1 + "' alt='' width='1' height='1'/>");window.onpageshow = function (ev) {if (ev && ev.persisted){document.getElementById("LiveMonTransparentImage").src = tUrl + "r=" + Math.random() + "&referrer=" + escape(document.referrer);}}}());
</script>

but for me it doesn't render anything. Any ideas?

#144599
Feb 16, 2016 7:20
Vote:
 

@Daniel, the button for enabling the statistics was removed some time ago. It should automatically be created.

@Andreas, nothing at all? It should render a few things, like script tags for Find.js. You can actually right click and view source on this page(world.episerver.com) which uses Find, and look a the bottom.

#144600
Feb 16, 2016 7:39
Vote:
 

@Per No nothing. Not even an empty script tag :/ I've compared with the alloy project but I can't see anything alloy or I do that differs.

#144603
Feb 16, 2016 8:01
Vote:
 

@Per

Is the Html.RequiredClientResources necessary for tracking to work when doing server-side search requests?

I've looked in Fiddler but I can't see anything weird. It does do requests to the following Urls /config, /autocomplete, /admin, /search. Although I only get empty result set from /autocomplete and /admin.

#144607
Feb 16, 2016 8:18
Vote:
 

For standard click tracking: Yes. For tracking of queries: No, I don't think so.

You should see a request to _track/(some tracking id) as well when executing searches with .Track().

Have you tried with a different index?

#144609
Feb 16, 2016 8:29
Vote:
 

I have tried with two different indexes (on different machines as well). I can't see a request to _track unfortunatelly. you want me to send my code to you (maybe I should go via the support?)?

#144611
Feb 16, 2016 8:39
Vote:
 

You could try episerver support. 
A couple of more tips though: are you doing your queries via web api or similar? Perhaps the currenet language is incorrect. 
Also: verify that Find is installed correctly - no missing files/dlls?

#144612
Feb 16, 2016 8:43
Vote:
 

I have exactly the same .dlls as the alloy demo site, i've reinstalled Find and still the same issue. I've tried both specifically the correct language as well as null but with no success :/ 

#144662
Feb 17, 2016 9:05
Vote:
 

Have you tried the index on the alloy site? 

#144665
Feb 17, 2016 9:22
Vote:
 

The index that's not working on my site is working fine in Alloy, the differnce is only the Find version I think...

#144683
Feb 17, 2016 12:30
Vote:
 

Which version are you using? 
Could you check that you are in fact invoking the correct .Track() method? If my memory serves me right, I've seen (in earlier versions at least) that a Track method that resides in a different namespace had been invoked, causing the tracking not to function, but without giving error messages. Compare which extensions are being used in the alloy site and in your other site

#144694
Feb 17, 2016 13:59
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.