Giter Site home page Giter Site logo

Comments (8)

dpawluk avatar dpawluk commented on July 24, 2024

@mtymek,

This error message is as specific as you'll get. You want to look over the json object you're sending to make sure it is both - valid json & valid entities (spelling, etc...). Do you have an example of the json object you're passing when creating the ticket?

from zendesk_api_client_php.

dpawluk avatar dpawluk commented on July 24, 2024

@mtymek I should mention that the conversion to JSON is taken care of, so you'll want to share the structure of the multi-dimensional array you're passing to the create method.

from zendesk_api_client_php.

mtymek avatar mtymek commented on July 24, 2024

I can't give you exact data that causes this problem - it happens from time to time, with no clear indication why.

We have a form where customer can submit a ticket. Submission looks like this:

$client->tickets()->create(
    array(
    'subject' => $form->getValue('subject'),
    'tags' => [$form->getValue('about')],
    'requester' => [
        'email' => $form->getValue('email'),
    ],
    'comment' => array(
        'body' => $description
    ),
    'priority' => 'normal'
    )
);

Looks like filters & validators in my form are too open and can let through something invalid. However, without a clear message like "subject contains invalid characters", I cannot understand why it's happening.

from zendesk_api_client_php.

mtymek avatar mtymek commented on July 24, 2024

Any chance to get some information on this topic? It seems to be random, for example today it's not working for certain e-mail addresses while it works for others

Doesn't work:

Array
(
    [subject] => [Something] test
    [tags] => Array
        (
            [0] => Payment-Live
        )

    [requester] => Array
        (
            [email] => [email protected]
        )

    [comment] => Array
        (
            [body] => Request about: Payment-Live

test test test

offerID: E366996532_FR
event url: http://dev-test1.cleeng.com/test-new-event/E366996532_FR
BROWSER PARAMETERS:
HTTP_USER_AGENT:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
IP: 127.0.0.1

        )

    [priority] => normal
)

Works:

Array
(
    [subject] => [Something] test
    [tags] => Array
        (
            [0] => Payment-Live
        )

    [requester] => Array
        (
            [email] => [email protected]
        )

    [comment] => Array
        (
            [body] => Request about: Payment-Live

test test test

offerID: E366996532_FR
event url: http://dev-test1.cleeng.com/test-new-event/E366996532_FR
BROWSER PARAMETERS:
HTTP_USER_AGENT:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
IP: 127.0.0.1

        )

    [priority] => normal
)

from zendesk_api_client_php.

mtymek avatar mtymek commented on July 24, 2024

ping @dpawluk

from zendesk_api_client_php.

buheryfi avatar buheryfi commented on July 24, 2024

@mtymek I'd suggest you send in a ticket to Zendesk support if you continue having issues finding out why your tickets are not being created. Please include the date/time of the failed ticket creation, as well as the payload.

from zendesk_api_client_php.

fhferreira avatar fhferreira commented on July 24, 2024

I have this problem because I add the parameters in wrong sequence. See my code that works fine :D

https://gist.github.com/fhferreira/a926529dfca3d7eb207e

from zendesk_api_client_php.

buheryfi avatar buheryfi commented on July 24, 2024

@fhferreira @mtymek are you both still having intermittent issues when using the same code?

from zendesk_api_client_php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.