GithubHelp home page GithubHelp logo

Comments (4)

steved avatar steved commented on June 15, 2024

Any chance you can post the full backtrace?

from zendesk_api_client_rb.

gaynetdinov avatar gaynetdinov commented on June 15, 2024

Sure.

post https://FOO.zendesk.com/api/v2/tickets
Authorization: "Basic secret here="
User-Agent: "ZendeskAPI API 0.0.9"
Accept-Encoding: "gzip;q=1.0,deflate;q=0.6,identity;q=0.3"
Accept: "application/json"


Started POST "/send_feedback" for 192.168.110.174 at Mon Aug 20 23:17:08 +0400 2012
Processing by PagesController#send_feedback as HTML
  Parameters: {"commit"=>"Send feedback!", "authenticity_token"=>"FVpVzV9YLWHhm1t6q1qt+ZBXM+wPR/SnxGvmkFaDIY8=", "utf8"=>"✓", "subject"=>"11", "reason"=>"I want different gift options!", "message"=>"22"}
Invalid ud_pid: 
Completed 500 Internal Server Error in 48ms

NoMethodError (undefined method `merge' for #<JSON::Ext::Generator::State:0xb383c468>):
  app/controllers/pages_controller.rb:65:in `send_feedback'


  Rendered /home/fabian/.rvm/gems/[email protected]/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms)
  Rendered /home/fabian/.rvm/gems/[email protected]/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
  Rendered /home/fabian/.rvm/gems/[email protected]/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (11.0ms)

from zendesk_api_client_rb.

steved avatar steved commented on June 15, 2024

Is there any way you can reproduce this separately from Rails? Or at least isolate the affected components? It looks like a problem with how Rails does to_json, but I'm not entirely sure.

Also, could you provide the versions you're using of rails and json?

from zendesk_api_client_rb.

gaynetdinov avatar gaynetdinov commented on June 15, 2024

I was using json version 1.5.1. I upgraded it to 1.6.1 and everything worked! Thank you.

from zendesk_api_client_rb.

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.