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

MultiJson::LoadError - Found multiple JSON objects in the stream but no block or the on_parse_complete callback was assigned to handle them. #5

Open
baligam opened this issue Oct 7, 2013 · 3 comments

Comments

@baligam
Copy link

baligam commented Oct 7, 2013

Recently we started getting the following error, each time we receive post event from SendGrid. As you can see from the Gemfile, we got the latest gridhook version. It may have something to do with the recent changes in SendGrid web hook API's, even though their support ensured us that we stayed on the older version of the API so the change shouldn't have affected us.

Full error stack:
http://pastebin.com/zZm2nCGp

Our gemfile:
http://pastebin.com/1AzfvhXY

Web Hook API change announcement
http://blog.sendgrid.com/announcing-new-version-event-notification-webhook/

@stereoscott
Copy link
Collaborator

For an immediate fix you could try to roll back to ref: fcbd824 in your gemfile.

If you can get a copy of the payload that is causing the error I'm sure we can create a test case for it and get it work under MultiJson, too.

@baligam
Copy link
Author

baligam commented Oct 8, 2013

Hi Scott,
The error happens with 0.2 version of GridHook as well as with 0.2.1.

Here's an example command you can use to simulate the post event that SendGrid send (from their v2 doc at http://sendgrid.com/docs/API_Reference/Webhooks/event_deprecated.html):

curl -i -d 'email=[email protected]&arg2=2&arg1=1&category=testing&event=processed'

@baligam
Copy link
Author

baligam commented Oct 8, 2013

Scott,
going back to GridHook to 0.1.4 resolved the issue!

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

No branches or pull requests

2 participants