deepthawtz/zendesk_client — Issue #2: 500 error on create ticket
Author: rgravina
Created: 2012-02-21 07:46:04+00:00
State: open

I'm finding I can connect and do basic gets fine:

```ruby
require "zendesk"

@zendesk = Zendesk::Client.new do |config|
config.account = "https://myaccount.zendesk.com/"
config.basic_auth "example@example.com", "secret"
end

@zendesk.users.count #=> 20
```

But when creating a ticket, I get a 500 from Zendesk:

```ruby
@zendesk.tickets.create do |ticket|
ticket[:description] = "testing"
ticket[:comment] = "testing"
ticket[:requester_email] = "example@example.com"
end
```

And yajl throws an error trying to parse it:

```
MultiJson::DecodeError: lexical error: invalid char in json text.
> @zendesk.tickets.count
MultiJson::DecodeError: lexical error: invalid char in json text.