Comments (4)
Hi Sarvagya,
Thanks for filing this issue, and including a stack trace.
It looks like there is a problem with the format of the API's JSON data, or possibly a bug in 'psych'.
I don't think I can patch this issue from within this codebase, since this project is not responsible for generating or parsing any of the JSON data.
I couldn't reproduce this issue in my local dev environment either. I would recommend trying a different JSON parser, or reporting this issue to Eventbrite's API team (api @ eventbrite.com).
from eventbrite-client.rb.
I had this same problem, with a similar test file. The bug appears to be in Psych, and I fixed it by adding:
YAML::ENGINE.yamler = 'syck'
near the top of my program.
(Inspiration from: http://stackoverflow.com/questions/4980877/rails-error-couldnt-parse-yaml)
from eventbrite-client.rb.
I never ran into this issue because I was using HTTParty+crack to handle the JSON.
http://railstips.org/blog/archives/2009/04/01/crack-the-easiest-way-to-parse-xml-and-json/
It sounds like the Psych YAML parser might get the job done as well, but only when configured to use the older (unmaintained) 'syck' YAML engine. :(
@nickgrim Thanks for the suggestion and the link!
from eventbrite-client.rb.
I've updated the requirements to include HTTParty 0.8+, which should fix this issue for everyone - no additional config required.
from eventbrite-client.rb.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventbrite-client.rb.