Zendesk Developer Training: Help Center App 403 errors



已于 2022年3月26日 发布

I've just completed the Zendesk apps developer training and I installed the Help Center search app that's provided in that training.

The app mostly works as intended: first it searches our Help Center based on the ticket subject line. Then, you can enter your own search term in the app field and it also searches correctly using those terms. 
 
However, it hasn't properly built links to our Help Center articles. While the results are the correct article subjects/snippets, none of the results are actually active links to the Help Center. Checking in developer tools, it seems there's a 403 failure here.
 
 
Looking in the HTML at one result, it seems like this here is failing:
 
<use xlink:href="index.svg#zd-svg-icon-12-copy-stroke"></use>
The Javascript console shows many, many complaints about this item.
 
 
 
The referenced XML files all have access denied errors on my end, for example:
 
 
When I completed the training, everything validated and packaged through ZAT with everything marked 'OK.' There were two small warnings, does this matter?
 
QR72T9D7HL:zendesk_developer rdoris$ zat validate

        info  Checking for new version of zendesk_apps_tools

/Users/rdoris/.gem/ruby/2.6.0/gems/zendesk_apps_support-4.31.1/lib/zendesk_apps_support/validations/svg.rb:11: warning: constant Loofah::HTML5::WhiteList is deprecated

/Users/rdoris/.gem/ruby/2.6.0/gems/zendesk_apps_support-4.31.1/lib/zendesk_apps_support/validations/svg.rb:12: warning: constant Loofah::HTML5::WhiteList is deprecated

/Users/rdoris/.gem/ruby/2.6.0/gems/zendesk_apps_support-4.31.1/lib/zendesk_apps_support/validations/svg.rb:17: warning: constant Loofah::HTML5::WhiteList is deprecated

     warning  The markup in assets/edx-logo.svg has been edited for use in Zendesk and may not display as intended.

    validate  OK

QR72T9D7HL:zendesk_developer rdoris$ zat package

/Users/rdoris/.gem/ruby/2.6.0/gems/zendesk_apps_support-4.31.1/lib/zendesk_apps_support/validations/svg.rb:11: warning: constant Loofah::HTML5::WhiteList is deprecated

/Users/rdoris/.gem/ruby/2.6.0/gems/zendesk_apps_support-4.31.1/lib/zendesk_apps_support/validations/svg.rb:12: warning: constant Loofah::HTML5::WhiteList is deprecated

/Users/rdoris/.gem/ruby/2.6.0/gems/zendesk_apps_support-4.31.1/lib/zendesk_apps_support/validations/svg.rb:17: warning: constant Loofah::HTML5::WhiteList is deprecated

    validate  OK

     warning  Please note that the name key of manifest.json is currently only used in development.

     package  adding README.md

     package  adding manifest.json

     package  adding assets/edx-logo.svg

     package  adding assets/iframe.html

     package  adding assets/edx-logo.png

     package  adding assets/edx-logo-small.png

     package  adding assets/logo-small.png

     package  adding assets/logo.png

     package  adding assets/logo.svg

     package  adding translations/en.json

     package  created at ./tmp/app-20220326143716.zip
 
 
Did I miss something? What can I do to get the permissions to run this app? 

0

2

2 条评论

Hi Rebecca,

Thanks for reaching out!

I'm glad you managed to get the app links working correctly by using a <span> element. That said, I've passed this piece of feedback on to the relevant product team to look in to further.

Thanks again and have a great day!

Tipene

0


Update: I was able to resolve this myself by removing the svg elements referenced in lines 184-186 and 218-220 of iframe.html and just replacing them with trusty boring span text elements.

The Help Center Search App.zip file from the Zendesk apps developer training needs to be updated so others don't run into this error with svgs that won't load (and thus can't function as links or otherwise as intended) and get discouraged.

0


登录 to leave a comment.

找不到所需的内容?

新建帖子