最近搜索


没有最近搜索

Error on SRP when anonymous



已于 2024年10月29日 发布

With  {{generative_answers}} added to the SRP, I get this error when not logged in (anonymous).

Uncaught (in promise) Error: Cannot find module './undefined.json'

Any insight as to what is behind this? It works with logged-in users without any errors.


0

3

3 条评论

image avatar

Tetiana Gron

Zendesk Product Manager

Hi Chris Todd! We don't support generative search for anonymous users in the EAP. 

0


Please re-read what I wrote – I know you don't support anonymous.

Why is {{generative_answers}} causing an error when users aren't logged in? Am I the only one that gets this error or are others? I can remove {{generative_answers}} and the error goes away.

0


Here's how I solved it

 

{{#is user.role 'anonymous'}}
               {{! do nothing }}
           {{else}}
                  {{generative_answers}}
           {{/is}}

0


请先登录再写评论。

找不到所需的内容?

新建帖子