Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro 400 compose/key #54

Open
bierTI-dev opened this issue Nov 25, 2022 · 4 comments
Open

Erro 400 compose/key #54

bierTI-dev opened this issue Nov 25, 2022 · 4 comments

Comments

@bierTI-dev
Copy link

bierTI-dev commented Nov 25, 2022

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

@syqtr
Copy link

syqtr commented Mar 2, 2023

Did you found the solution for this issue??

@rtouze
Copy link
Contributor

rtouze commented Mar 6, 2023

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.

@syqtr
Copy link

syqtr commented Mar 6, 2023

@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??

@rtouze
Copy link
Contributor

rtouze commented Mar 6, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants