Navigation Menu

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

Object parsing hangs #467

Open
armandolew opened this issue Oct 27, 2017 · 3 comments
Open

Object parsing hangs #467

armandolew opened this issue Oct 27, 2017 · 3 comments

Comments

@armandolew
Copy link

Hi, good afternoon.

After I tried to use the Her::Middleware::DefaultParseJSON middleware and getting a TypeError (no implicit conversion of Symbol into Integer), I tried to use a custom middleware that someone posted as a solution to the issue. Finally, after getting this middleware to show the response coming from an external API, I fired a query and the app freezes at the moment of creating the model objects from the json response. I don't receive any error on console nor a warning anywhere and I'm able to print the response from the env hash, so my guess is that Her is trying to convert this json response into model objects and there is where the app hangs. Can you please give me some pointers regarding the structure the env data should provide in order for Her to be able to parse accordingly? Thank you. Regards. Armando.

@edtjones
Copy link
Collaborator

edtjones commented Oct 27, 2017 via email

@armandolew
Copy link
Author

Hi Ed, thanks for the quick reply. No, there's no 'attributes' attribute. What I can see is that Her parses a batch of json strings but then crashes. I'm not sure if this issue might be related to an absent attribute or a memory issue.

@edtjones
Copy link
Collaborator

edtjones commented Oct 28, 2017 via email

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