vue-zendesk icon indicating copy to clipboard operation
vue-zendesk copied to clipboard

Erro 400 compose/key

Open bierTI-dev opened this issue 2 years ago • 4 comments

I got a 400 error on the get method on the URL https://ekr.zdassets.com/compose/key

My main.js:

import Zendesk from '@dansmaculotte/vue-zendesk'

Vue.use(Zendesk, {
  key: 'my key',
  disabled: true,
  hideOnLoad: true,
  settings: {
    webWidget: {
      color: {
        theme: '#78a300'
      }
    }
  }
});

My component:

<template>
  xxx
</template>

<script>
export default {
  name: "faq",
  mounted() {
    this.$zendesk.load('key');
  },
  methods: {
    showCustmerService() {
      this.$zendesk('webWidget', 'show');
      this.$zendesk('webWidget', 'open');
      this.$zendesk('webWidget:on', 'close', () => {
        this.$zendesk('webWidget', 'hide');
      });
    },
  },
};
</script>

In the network: Request URL: https://ekr.zdassets.com/compose/key Request Method: GET Status Code: 400

bierTI-dev avatar Nov 25 '22 20:11 bierTI-dev

Did you found the solution for this issue??

syqtr avatar Mar 02 '23 17:03 syqtr

Can you check the return of request "https://static.zdassets.com/ekr/snippet.js?key=" + actualZendeskKey?

If your key is sent to Vue plugin, you don't have to pass it to this.$zendesk.load function.

rtouze avatar Mar 06 '23 14:03 rtouze

@rtouze thanks for replying. I figure out the key is different from the Account_Key. I'm able to integrate now

However, after I this.$zendesk.load and from the UI, I navigate to chat box, input name, email then message and click send, the messages don't go to my zendesk. Is there any other configuration need to be set to actually send message to zendesk??

syqtr avatar Mar 06 '23 14:03 syqtr

The plugin only load the widget. Once it's shown, it's zendesk's responsibility.

Le 6 mars 2023 15:47:15 GMT+01:00, syqtr @.***> a écrit :

@rtouze thanks for replying. I figure out the key is different from the Account_Key. I'm able to integrate now

However, after I this.$zendesk.load and from the UI, I navigate to chat box, input name, email then message and click send, the messages don't go to my zendesk. Is there any other configuration need to be set to actually send message to zendesk??

-- Reply to this email directly or view it on GitHub: https://github.com/dansmaculotte/vue-zendesk/issues/54#issuecomment-1456274139 You are receiving this because you were mentioned.

Message ID: @.***> -- Romain TOUZÉ - https://rtodev.tech +33 7 81 13 85 58

rtouze avatar Mar 06 '23 16:03 rtouze